tests/filtercr.py
author Mads Kiilerich <mads@kiilerich.com>
Wed, 23 Nov 2011 02:50:58 +0100
changeset 15557 7bb5ed61b74c
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
tests: convert test-check-code-hg.py to .t

#!/usr/bin/env python

# Filter output by the progress extension to make it readable in tests

import sys, re

for line in sys.stdin:
    line = re.sub(r'\r+[^\n]', lambda m: '\n' + m.group()[-1:], line)
    sys.stdout.write(line)
print