diff options
Diffstat (limited to 'tests/filtercr.py')
-rwxr-xr-x | tests/filtercr.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/filtercr.py b/tests/filtercr.py new file mode 100755 index 0000000..c743b22 --- /dev/null +++ b/tests/filtercr.py @@ -0,0 +1,10 @@ +#!/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 |