diff tests/test-pull @ 10398:ace3cf2bc991

tests: don't just silently strip port numbers
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 08 Feb 2010 02:53:41 +0100
parents d4a62b6d4a58
children 2b57eed1be0b
line wrap: on
line diff
--- a/tests/test-pull	Sun Feb 07 10:47:54 2010 -0500
+++ b/tests/test-pull	Mon Feb 08 02:53:41 2010 +0100
@@ -11,13 +11,13 @@
 cat hg.pid >> $DAEMON_PIDS
 cd ..
 
-hg clone --pull http://localhost:$HGPORT/ copy | sed -e 's,:[0-9][0-9]*/,/,'
+hg clone --pull http://localhost:$HGPORT/ copy | sed -e "s,:$HGPORT/,:\$HGPORT/,"
 cd copy
 hg verify
 hg co
 cat foo
 hg manifest --debug
-hg pull | sed -e 's,:[0-9][0-9]*/,/,'
+hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/,"
 
 echo % issue 622
 cd ..