# HG changeset patch # User Matt Mackall # Date 1422056824 21600 # Node ID ea61e278ae9201d4b66146285bde689b4f26868e # Parent 42f3042cc17f302971b365a0be89f679c4620da7 test-hgweb: fix shutdown race Logfiles weren't necessarily being flushed before being read. diff -r 42f3042cc17f -r ea61e278ae92 tests/test-hgweb.t --- a/tests/test-hgweb.t Thu Jan 22 00:08:13 2015 +0900 +++ b/tests/test-hgweb.t Fri Jan 23 17:47:04 2015 -0600 @@ -595,11 +595,14 @@ Internal Server Error (no-eol) [1] + $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS $ head -1 errors.log .* Exception happened during processing request '/raiseerror': (re) Uncaught exception after partial content sent + $ hg --config extensions.hgweberror=$TESTDIR/hgweberror.py serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log + $ cat hg.pid >> $DAEMON_PIDS $ $TESTDIR/get-with-headers.py localhost:$HGPORT 'raiseerror?partialresponse=1' transfer-encoding content-type 200 Script output follows transfer-encoding: chunked @@ -608,4 +611,5 @@ partial content Internal Server Error (no-eol) + $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS $ cd ..