tests/test-serve
changeset 6331 627665e37bdd
parent 6300 874ca958025b
child 6461 eb69e7989145
--- a/tests/test-serve	Thu Mar 20 22:41:40 2008 +0100
+++ b/tests/test-serve	Thu Mar 20 22:58:53 2008 +0100
@@ -3,7 +3,7 @@
 hgserve()
 {
     hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v $@ \
-        | sed -e 's/:[0-9][0-9]*//g' -e 's/localhost\.localdomain/localhost/'
+        | sed -e 's/:[0-9][0-9]*//g' -e 's/http:\/\/[^/]*\//http:\/\/localhost\//'
     cat hg.pid >> "$DAEMON_PIDS"
     sleep 1
     kill `cat hg.pid`