summaryrefslogtreecommitdiff
path: root/tests/test-serve.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-serve.t')
-rw-r--r--tests/test-serve.t10
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 ..