diff tests/test-archive @ 7344:58fd3c718ca4

tests: add killdaemons helper script
author Matt Mackall <mpm@selenic.com>
date Fri, 07 Nov 2008 16:28:53 -0600
parents a6477aa893b8
children 0c2ba48415c8
line wrap: on
line diff
--- a/tests/test-archive	Fri Nov 07 16:28:52 2008 -0600
+++ b/tests/test-archive	Fri Nov 07 16:28:53 2008 -0600
@@ -24,7 +24,7 @@
     echo % $3 and $4 disallowed should both give 403
     "$TESTDIR/get-with-headers.py" localhost:$HGPORT "/archive/tip.$3" | head -n 1
     "$TESTDIR/get-with-headers.py" localhost:$HGPORT "/archive/tip.$4" | head -n 1
-    kill `cat hg.pid`
+    "$TESTDIR/killdaemons.py"
     cat errors.log
     cp .hg/hgrc-base .hg/hgrc
 }
@@ -63,6 +63,8 @@
 http_proxy= python getarchive.py "$TIP" zip > archive.zip
 unzip -t archive.zip | sed "s/$QTIP/TIP/"
 
+"$TESTDIR/killdaemons.py"
+
 hg archive -t tar test.tar
 tar tf test.tar