Mercurial > hg
diff tests/test-convert-svn-move.t @ 13141:6cfe17c19ba2
tests: add filtercr.py helper for progress tests
The two tests that used filtercr.py already used a slightly different
version, which explains why test-convert-svn-move.t changed after
switching to using $TESTDIR/filtercr.py.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Wed, 15 Dec 2010 16:29:46 +0100 |
parents | f139f34ba330 |
children | e9827c85c50b |
line wrap: on
line diff
--- a/tests/test-convert-svn-move.t Wed Dec 15 09:52:20 2010 +0100 +++ b/tests/test-convert-svn-move.t Wed Dec 15 16:29:46 2010 +0100 @@ -169,14 +169,8 @@ > delay = 0 > refresh = 0 > EOF - $ cat > filtercr.py <<EOF - > 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) - > EOF - $ hg convert svn-repo hg-progress 2>&1 | python filtercr.py + $ hg convert svn-repo hg-progress 2>&1 | $TESTDIR/filtercr.py scanning [ <=> ] 1 scanning [ <=> ] 2 @@ -249,3 +243,4 @@ 2 adddb 1 branch 0 clobberdir +