tests/filtercr.py
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Sat, 12 Mar 2011 11:06:40 +0100
branchstable
changeset 13621 c0b0b00f0279
parent 13141 6cfe17c19ba2
permissions -rwxr-xr-x
tests: fix permission issue trying to remove test directory

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