comparison tests/test-serve @ 6331:627665e37bdd

fix test-serve breakage for other hostnames
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 20 Mar 2008 22:58:53 +0100
parents 874ca958025b
children eb69e7989145
comparison
equal deleted inserted replaced
6330:4e836769d93c 6331:627665e37bdd
1 #!/bin/sh 1 #!/bin/sh
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 -v $@ \
6 | sed -e 's/:[0-9][0-9]*//g' -e 's/localhost\.localdomain/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 sleep 1 8 sleep 1
9 kill `cat hg.pid` 9 kill `cat hg.pid`
10 sleep 1 10 sleep 1
11 } 11 }