fix test-serve breakage for other hostnames
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Thu, 20 Mar 2008 22:58:53 +0100
changeset 6331 627665e37bdd
parent 6330 4e836769d93c
child 6332 950e72fc7cf3
fix test-serve breakage for other hostnames
tests/test-serve
--- 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`