# HG changeset patch # User Brendan Cully # Date 1218060498 25200 # Node ID d78d0f9783b842e610a0af58e391d3326ccf1384 # Parent 7192876ac32945dd3602332edc65ec6fe46ecb66 Fix intermittent broken pipe in test-highlight diff -r 7192876ac329 -r d78d0f9783b8 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