diff tests/test-archive @ 1929:85daa4e03b4c

Merging with crew.
author Eric Hopper <hopper@omnifarious.org>
date Mon, 06 Mar 2006 08:47:16 -0800
parents c71420b186b0 ffb584a182d1
children 98cc126f9f3f
line wrap: on
line diff
--- a/tests/test-archive	Wed Feb 22 16:11:17 2006 +0100
+++ b/tests/test-archive	Mon Mar 06 08:47:16 2006 -0800
@@ -18,8 +18,7 @@
 echo "allowzip = true" >> .hg/hgrc
 echo "allowgz = true" >> .hg/hgrc
 echo "allowbz2 = true" >> .hg/hgrc
-hg serve -p 20059 > /dev/null &
-sleep 1 # wait for server to be started
+hg serve -p 20059 -d --pid-file=hg.pid
 
 TIP=`hg id -v | cut -f1 -d' '`
 QTIP=`hg id -q`
@@ -35,5 +34,5 @@
 http_proxy= python getarchive.py "$TIP" zip > archive.zip
 unzip -t archive.zip | sed "s/$QTIP/TIP/"
 
-kill $!
+kill `cat hg.pid`
 sleep 1 # wait for server to scream and die