comparison tests/test-pull @ 1744:385b06493465

make server tests use --daemon.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Fri, 17 Feb 2006 21:55:33 -0800
parents 0902ffece4b4
children ffb584a182d1
comparison
equal deleted inserted replaced
1742:1e5bb6c929cd 1744:385b06493465
5 echo foo>foo 5 echo foo>foo
6 hg init 6 hg init
7 hg addremove 7 hg addremove
8 hg commit -m 1 8 hg commit -m 1
9 hg verify 9 hg verify
10 hg serve -p 20059 > /dev/null & 10 serverpid=`mktemp`
11 sleep 1 # wait for server to be started 11 hg serve -p 20059 -d --pid-file=$serverpid
12 cd .. 12 cd ..
13 13
14 hg clone http://localhost:20059/ copy 14 hg clone http://localhost:20059/ copy
15 cd copy 15 cd copy
16 hg verify 16 hg verify
17 hg co 17 hg co
18 cat foo 18 cat foo
19 hg manifest 19 hg manifest
20 hg pull 20 hg pull
21 21
22 kill $! 22 kill `cat $serverpid`
23 rm $serverpid