changeset 8446:e1f4343db740

tests: use repr.py to avoid binary characters in test output
author Marti Raudsepp <marti@juffo.org>
date Sun, 17 May 2009 01:16:56 +0200
parents 0a06ae261392
children d5ebcf8f6855 d1ca637b0773
files tests/test-hgweb-commands tests/test-hgweb-commands.out tests/test-simplemerge-cmd tests/test-simplemerge-cmd.out
diffstat 4 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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