tests/test-pull
changeset 1744 385b06493465
parent 814 0902ffece4b4
child 1786 ffb584a182d1
--- a/tests/test-pull	Sat Feb 18 05:40:08 2006 +0100
+++ b/tests/test-pull	Fri Feb 17 21:55:33 2006 -0800
@@ -7,8 +7,8 @@
 hg addremove
 hg commit -m 1
 hg verify
-hg serve -p 20059 > /dev/null &
-sleep 1 # wait for server to be started
+serverpid=`mktemp`
+hg serve -p 20059 -d --pid-file=$serverpid
 cd ..
 
 hg clone http://localhost:20059/ copy
@@ -19,4 +19,5 @@
 hg manifest
 hg pull
 
-kill $!
+kill `cat $serverpid`
+rm $serverpid