##// END OF EJS Templates
tests: easier error diagnostics for test-serve
Dirkjan Ochtman -
r6461:eb69e798 default
parent child Browse files
Show More
@@ -2,9 +2,11 b''
2
2
3 hgserve()
3 hgserve()
4 {
4 {
5 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v $@ \
5 hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -E errors.log -v $@ \
6 | sed -e 's/:[0-9][0-9]*//g' -e 's/http:\/\/[^/]*\//http:\/\/localhost\//'
6 | sed -e 's/:[0-9][0-9]*//g' -e 's/http:\/\/[^/]*\//http:\/\/localhost\//'
7 cat hg.pid >> "$DAEMON_PIDS"
7 cat hg.pid >> "$DAEMON_PIDS"
8 echo % errors
9 cat errors.log
8 sleep 1
10 sleep 1
9 kill `cat hg.pid`
11 kill `cat hg.pid`
10 sleep 1
12 sleep 1
@@ -17,11 +19,13 b" echo '[web]' > .hg/hgrc"
17 echo 'accesslog = access.log' >> .hg/hgrc
19 echo 'accesslog = access.log' >> .hg/hgrc
18
20
19 echo % Without -v
21 echo % Without -v
20 hg serve -a localhost -p $HGPORT -d --pid-file=hg.pid
22 hg serve -a localhost -p $HGPORT -d --pid-file=hg.pid -E errors.log
21 cat hg.pid >> "$DAEMON_PIDS"
23 cat hg.pid >> "$DAEMON_PIDS"
22 if [ -f access.log ]; then
24 if [ -f access.log ]; then
23 echo 'access log created - .hg/hgrc respected'
25 echo 'access log created - .hg/hgrc respected'
24 fi
26 fi
27 echo % errors
28 cat errors.log
25
29
26 echo % With -v
30 echo % With -v
27 hgserve
31 hgserve
@@ -1,12 +1,18 b''
1 % Without -v
1 % Without -v
2 access log created - .hg/hgrc respected
2 access log created - .hg/hgrc respected
3 % errors
3 % With -v
4 % With -v
4 listening at http://localhost/ (bound to 127.0.0.1)
5 listening at http://localhost/ (bound to 127.0.0.1)
6 % errors
5 % With --prefix foo
7 % With --prefix foo
6 listening at http://localhost/foo/ (bound to 127.0.0.1)
8 listening at http://localhost/foo/ (bound to 127.0.0.1)
9 % errors
7 % With --prefix /foo
10 % With --prefix /foo
8 listening at http://localhost/foo/ (bound to 127.0.0.1)
11 listening at http://localhost/foo/ (bound to 127.0.0.1)
12 % errors
9 % With --prefix foo/
13 % With --prefix foo/
10 listening at http://localhost/foo/ (bound to 127.0.0.1)
14 listening at http://localhost/foo/ (bound to 127.0.0.1)
15 % errors
11 % With --prefix /foo/
16 % With --prefix /foo/
12 listening at http://localhost/foo/ (bound to 127.0.0.1)
17 listening at http://localhost/foo/ (bound to 127.0.0.1)
18 % errors
General Comments 0
You need to be logged in to leave comments. Login now