# HG changeset patch # User Thomas Arendsen Hein # Date 2008-02-02 20:01:43 # 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 --git a/tests/test-serve b/tests/test-serve --- a/tests/test-serve +++ b/tests/test-serve @@ -16,24 +16,28 @@ fi 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 --git a/tests/test-serve.out b/tests/test-serve.out --- a/tests/test-serve.out +++ b/tests/test-serve.out @@ -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/