changeset 23952:ea61e278ae92 stable

test-hgweb: fix shutdown race Logfiles weren't necessarily being flushed before being read.
author Matt Mackall <mpm@selenic.com>
date Fri, 23 Jan 2015 17:47:04 -0600
parents 42f3042cc17f
children af73c05e735a
files tests/test-hgweb.t
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 ..