##// END OF EJS Templates
test-serve: wait before killing to always hide the "killed!" message....
Thomas Arendsen Hein -
r6000:8e7d6498 default
parent child Browse files
Show More
@@ -16,24 +16,28 b' fi'
16 echo % With -v
16 echo % With -v
17 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v | sed -e 's,:[0-9][0-9]*/,/,'
17 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v | sed -e 's,:[0-9][0-9]*/,/,'
18 cat hg.pid >> "$DAEMON_PIDS"
18 cat hg.pid >> "$DAEMON_PIDS"
19 sleep 1
19 kill `cat hg.pid`
20 kill `cat hg.pid`
20 sleep 1
21 sleep 1
21
22
22 echo % With --prefix foo
23 echo % With --prefix foo
23 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo | sed -e 's,:[0-9][0-9]*/,/,'
24 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo | sed -e 's,:[0-9][0-9]*/,/,'
24 cat hg.pid >> "$DAEMON_PIDS"
25 cat hg.pid >> "$DAEMON_PIDS"
26 sleep 1
25 kill `cat hg.pid`
27 kill `cat hg.pid`
26 sleep 1
28 sleep 1
27
29
28 echo % With --prefix /foo
30 echo % With --prefix /foo
29 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix /foo | sed -e 's,:[0-9][0-9]*/,/,'
31 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix /foo | sed -e 's,:[0-9][0-9]*/,/,'
30 cat hg.pid >> "$DAEMON_PIDS"
32 cat hg.pid >> "$DAEMON_PIDS"
33 sleep 1
31 kill `cat hg.pid`
34 kill `cat hg.pid`
32 sleep 1
35 sleep 1
33
36
34 echo % With --prefix foo/
37 echo % With --prefix foo/
35 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo/ | sed -e 's,:[0-9][0-9]*/,/,'
38 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo/ | sed -e 's,:[0-9][0-9]*/,/,'
36 cat hg.pid >> "$DAEMON_PIDS"
39 cat hg.pid >> "$DAEMON_PIDS"
40 sleep 1
37 kill `cat hg.pid`
41 kill `cat hg.pid`
38 sleep 1
42 sleep 1
39
43
@@ -2,15 +2,11 b''
2 access log created - .hg/hgrc respected
2 access log created - .hg/hgrc respected
3 % With -v
3 % With -v
4 listening at http://localhost/
4 listening at http://localhost/
5 killed!
6 % With --prefix foo
5 % With --prefix foo
7 listening at http://localhost/foo/
6 listening at http://localhost/foo/
8 killed!
9 % With --prefix /foo
7 % With --prefix /foo
10 listening at http://localhost/foo/
8 listening at http://localhost/foo/
11 killed!
12 % With --prefix foo/
9 % With --prefix foo/
13 listening at http://localhost/foo/
10 listening at http://localhost/foo/
14 killed!
15 % With --prefix /foo/
11 % With --prefix /foo/
16 listening at http://localhost/foo/
12 listening at http://localhost/foo/
General Comments 0
You need to be logged in to leave comments. Login now