diff --git a/tests/test-http-clone-r b/tests/test-http-clone-r --- a/tests/test-http-clone-r +++ b/tests/test-http-clone-r @@ -49,13 +49,13 @@ hg debugindex .hg/store/data/fred.i hg debugindex .hg/store/00manifest.i hg verify echo "# Starting server" -hg serve -p 20061 -d --pid-file=../hg1.pid +hg serve -p $HGPORT -d --pid-file=../hg1.pid cd .. cat hg1.pid >> $DAEMON_PIDS echo "# clone remote via stream" for i in 0 1 2 3 4 5 6 7 8; do - hg clone -r "$i" http://localhost:20061/ test-"$i" 2>&1 + hg clone -r "$i" http://localhost:$HGPORT/ test-"$i" 2>&1 if cd test-"$i"; then hg verify cd .. @@ -66,13 +66,13 @@ hg pull ../test-7 hg verify cd .. cd test-1 -hg pull -r 4 http://localhost:20061/ 2>&1 +hg pull -r 4 http://localhost:$HGPORT/ 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' hg verify -hg pull http://localhost:20061/ 2>&1 +hg pull http://localhost:$HGPORT/ 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' cd .. cd test-2 -hg pull -r 5 http://localhost:20061/ 2>&1 +hg pull -r 5 http://localhost:$HGPORT/ 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' hg verify -hg pull http://localhost:20061/ 2>&1 +hg pull http://localhost:$HGPORT/ 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' hg verify cd ..