test-serve: wait before killing to always hide the "killed!" message.
authorThomas Arendsen Hein <thomas@intevation.de>
Sat, 02 Feb 2008 21:01:43 +0100
changeset 6000 8e7d64989bb8
parent 5999 d1fe1a4eb2b7
child 6001 30d2fecaab76
test-serve: wait before killing to always hide the "killed!" message. Without the sleeps slower systems never display never display "killed!" while faster systems sometimes or nearly always display it.
tests/test-serve
tests/test-serve.out
--- a/tests/test-serve	Sat Feb 02 14:55:14 2008 +0100
+++ b/tests/test-serve	Sat Feb 02 21:01:43 2008 +0100
@@ -16,24 +16,28 @@
 echo % With -v
 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v | sed -e 's,:[0-9][0-9]*/,/,'
 cat hg.pid >> "$DAEMON_PIDS"
+sleep 1
 kill `cat hg.pid`
 sleep 1
 
 echo % With --prefix foo
 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo | sed -e 's,:[0-9][0-9]*/,/,'
 cat hg.pid >> "$DAEMON_PIDS"
+sleep 1
 kill `cat hg.pid`
 sleep 1
 
 echo % With --prefix /foo
 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix /foo | sed -e 's,:[0-9][0-9]*/,/,'
 cat hg.pid >> "$DAEMON_PIDS"
+sleep 1
 kill `cat hg.pid`
 sleep 1
 
 echo % With --prefix foo/
 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo/ | sed -e 's,:[0-9][0-9]*/,/,'
 cat hg.pid >> "$DAEMON_PIDS"
+sleep 1
 kill `cat hg.pid`
 sleep 1
 
--- a/tests/test-serve.out	Sat Feb 02 14:55:14 2008 +0100
+++ b/tests/test-serve.out	Sat Feb 02 21:01:43 2008 +0100
@@ -2,15 +2,11 @@
 access log created - .hg/hgrc respected
 % With -v
 listening at http://localhost/
-killed!
 % With --prefix foo
 listening at http://localhost/foo/
-killed!
 % With --prefix /foo
 listening at http://localhost/foo/
-killed!
 % With --prefix foo/
 listening at http://localhost/foo/
-killed!
 % With --prefix /foo/
 listening at http://localhost/foo/