tests/filtercr.py
author Mads Kiilerich <mads@kiilerich.com>
Sun, 10 Jun 2012 18:50:42 +0200
changeset 16906 2a95830cff77
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
tests: use the right directory for running hghave from run-tests.py

#!/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