diff --git a/tests/test-serve b/tests/test-serve index d1fe1a4eb2b70a8e6f83fbac532bf1f1bf906502_dGVzdHMvdGVzdC1zZXJ2ZQ==..8e7d64989bb8ecc9609e1272a411397f523e66a9_dGVzdHMvdGVzdC1zZXJ2ZQ== 100755 --- a/tests/test-serve +++ b/tests/test-serve @@ -16,9 +16,10 @@ 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" @@ -19,12 +20,13 @@ 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" @@ -25,12 +27,13 @@ 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" @@ -31,9 +34,10 @@ 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 index d1fe1a4eb2b70a8e6f83fbac532bf1f1bf906502_dGVzdHMvdGVzdC1zZXJ2ZS5vdXQ=..8e7d64989bb8ecc9609e1272a411397f523e66a9_dGVzdHMvdGVzdC1zZXJ2ZS5vdXQ= 100644 --- a/tests/test-serve.out +++ b/tests/test-serve.out @@ -2,6 +2,5 @@ access log created - .hg/hgrc respected % With -v listening at http://localhost/ -killed! % With --prefix foo listening at http://localhost/foo/ @@ -6,5 +5,4 @@ % With --prefix foo listening at http://localhost/foo/ -killed! % With --prefix /foo listening at http://localhost/foo/ @@ -9,5 +7,4 @@ % With --prefix /foo listening at http://localhost/foo/ -killed! % With --prefix foo/ listening at http://localhost/foo/ @@ -12,5 +9,4 @@ % With --prefix foo/ listening at http://localhost/foo/ -killed! % With --prefix /foo/ listening at http://localhost/foo/