diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2011-10-01 20:49:36 +0000 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-09-27 13:27:51 +0000 |
commit | 921ced43c48c1d170452a7b251b94cc96ec8dd44 (patch) | |
tree | 3c4a89176ea67fe4c7bf7b375488361a823c95fa /tests/test-serve.t | |
parent | 9039c805b0a7e36220101323f82735f08a104b37 (diff) | |
download | mercurial-tarball-master.tar.gz |
Imported from /srv/lorry/lorry-area/mercurial-tarball/mercurial-1.9.3.tar.gz.HEADmercurial-1.9.3master
Diffstat (limited to 'tests/test-serve.t')
-rw-r--r-- | tests/test-serve.t | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/test-serve.t b/tests/test-serve.t index 8ae4a86..20784b4 100644 --- a/tests/test-serve.t +++ b/tests/test-serve.t @@ -1,4 +1,3 @@ - $ "$TESTDIR/hghave" serve || exit 80 $ hgserve() > { @@ -9,12 +8,13 @@ > cat hg.pid >> "$DAEMON_PIDS" > echo % errors > cat errors.log + > sleep 1 > if [ "$KILLQUIETLY" = "Y" ]; then > kill `cat hg.pid` 2>/dev/null > else > kill `cat hg.pid` > fi - > while kill -0 `cat hg.pid` 2>/dev/null; do sleep 0; done + > sleep 1 > } $ hg init test @@ -28,9 +28,9 @@ Without -v $ hg serve -a localhost -p $HGPORT -d --pid-file=hg.pid -E errors.log $ cat hg.pid >> "$DAEMON_PIDS" $ if [ -f access.log ]; then - > echo 'access log created - .hg/hgrc respected' - > fi + $ echo 'access log created - .hg/hgrc respected' access log created - .hg/hgrc respected + $ fi errors @@ -80,5 +80,3 @@ With --prefix /foo/ $ hgserve --prefix /foo/ listening at http://localhost/foo/ (bound to 127.0.0.1:HGPORT1) % errors - - $ cd .. |