Fix intermittent broken pipe in test-highlight
authorBrendan Cully <brendan@kublai.com>
Wed, 06 Aug 2008 15:08:18 -0700
changeset 6863 d78d0f9783b8
parent 6862 7192876ac329
child 6864 105d8676a688
Fix intermittent broken pipe in test-highlight
tests/test-highlight
--- a/tests/test-highlight	Wed Aug 06 15:10:05 2008 +0200
+++ b/tests/test-highlight	Wed Aug 06 15:08:18 2008 -0700
@@ -27,8 +27,9 @@
     | sed "s/[0-9]* years ago/long ago/g"
 
 echo % hgweb highlightcss friendly
-("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/highlightcss') \
-    | head -n 4
+"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/highlightcss' > out
+head -n 4 out
+rm out
 
 echo % errors encountered
 cat errors.log
@@ -45,8 +46,9 @@
 cat hg.pid >> $DAEMON_PIDS
 
 echo % hgweb highlightcss fruity
-("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/highlightcss') \
-    | head -n 4
+"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/highlightcss' > out
+head -n 4 out
+rm out
 
 echo % errors encountered
 cat errors.log