From 9473b6e676dc23d6b671402991e189241a8a2d88 Mon Sep 17 00:00:00 2001 From: "Alexis S. L. Carvalho" Date: Tue, 5 Jun 2007 19:26:36 -0300 Subject: [PATCH] test-serve: let run-tests.py kill the daemons If the daemons die while the tests are still running, we'll get additional "killed!" messages, making the test fail. --- tests/test-serve | 6 +++--- tests/test-serve.out | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test-serve b/tests/test-serve index 3c66940bc9..cb8670e3d3 100755 --- a/tests/test-serve +++ b/tests/test-serve @@ -5,8 +5,8 @@ cd test echo % Without -v hg serve -a localhost -p 20063 -d --pid-file=hg.pid -kill `cat hg.pid` +cat hg.pid >> "$DAEMON_PIDS" echo % With -v -hg serve -a localhost -p 20063 -d --pid-file=hg.pid -v -kill `cat hg.pid` +hg serve -a localhost -p 20064 -d --pid-file=hg.pid -v +cat hg.pid >> "$DAEMON_PIDS" diff --git a/tests/test-serve.out b/tests/test-serve.out index af2249a67f..28d0a2c082 100644 --- a/tests/test-serve.out +++ b/tests/test-serve.out @@ -1,3 +1,3 @@ % Without -v % With -v -listening at http://localhost:20063/ +listening at http://localhost:20064/