changeset 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 4e836769d93c
children 950e72fc7cf3
files tests/test-serve
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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`