# HG changeset patch # User Thomas Arendsen Hein # Date 1201982503 -3600 # Node ID 8e7d64989bb8ecc9609e1272a411397f523e66a9 # Parent d1fe1a4eb2b70a8e6f83fbac532bf1f1bf906502 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. diff -r d1fe1a4eb2b7 -r 8e7d64989bb8 tests/test-serve --- 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 diff -r d1fe1a4eb2b7 -r 8e7d64989bb8 tests/test-serve.out --- 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/