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.
--- 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/