changeset 6000:8e7d64989bb8

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.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 02 Feb 2008 21:01:43 +0100
parents d1fe1a4eb2b7
children 30d2fecaab76
files tests/test-serve tests/test-serve.out
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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/