tests: use repr.py to avoid binary characters in test output
authorMarti Raudsepp <marti@juffo.org>
Sun, 17 May 2009 01:16:56 +0200
changeset 8446 e1f4343db740
parent 8445 0a06ae261392
child 8447 d5ebcf8f6855
child 8453 d1ca637b0773
tests: use repr.py to avoid binary characters in test output
tests/test-hgweb-commands
tests/test-hgweb-commands.out
tests/test-simplemerge-cmd
tests/test-simplemerge-cmd.out
--- a/tests/test-hgweb-commands	Sun May 17 01:10:35 2009 +0200
+++ b/tests/test-hgweb-commands	Sun May 17 01:16:56 2009 +0200
@@ -49,7 +49,8 @@
 echo % branches
 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=branches'
 echo % changegroup
-"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=changegroup'
+"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=changegroup' \
+    | $TESTDIR/repr.py
 echo % stream_out
 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '?cmd=stream_out'
 echo % failing unbundle, requires POST request
Binary file tests/test-hgweb-commands.out has changed
--- a/tests/test-simplemerge-cmd	Sun May 17 01:10:35 2009 +0200
+++ b/tests/test-simplemerge-cmd	Sun May 17 01:16:56 2009 +0200
@@ -47,7 +47,7 @@
 python simplemerge -p binary-local base other
 
 echo '% binary file --text'
-python simplemerge -a -p binary-local base other
+python simplemerge -a -p binary-local base other 2>&1 | $TESTDIR/repr.py
 
 echo '% help'
 python simplemerge --help
Binary file tests/test-simplemerge-cmd.out has changed