Mercurial > public > mercurial-scm > hg-stable
diff tests/test-http @ 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 | 1a8df80dfdde |
line wrap: on
line diff
--- a/tests/test-http Sun Feb 07 10:47:54 2010 -0500 +++ b/tests/test-http Mon Feb 08 02:53:41 2010 +0100 @@ -14,7 +14,7 @@ hg --config server.uncompressed=True serve -p $HGPORT -d --pid-file=../hg1.pid hg serve -p $HGPORT1 -d --pid-file=../hg2.pid # Test server address cannot be reused -hg serve -p $HGPORT1 2>&1 | sed -e "s/abort: cannot start server at ':$HGPORT1':.*/abort: cannot start server at ':20060':/" +hg serve -p $HGPORT1 2>&1 | sed -e "s/abort: cannot start server at ':$HGPORT1':.*/abort: cannot start server at ':\$HGPORT1':/" cd .. cat hg1.pid hg2.pid >> $DAEMON_PIDS @@ -39,5 +39,5 @@ cd copy-pull echo '[hooks]' >> .hg/hgrc echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc -hg pull | sed -e 's,:[0-9][0-9]*/,/,' +hg pull | sed -e "s,:$HGPORT1/,:\$HGPORT1/," cd ..