Mercurial > hg
diff tests/test-static-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 | 26abd91d9e84 |
line wrap: on
line diff
--- a/tests/test-static-http Sun Feb 07 10:47:54 2010 -0500 +++ b/tests/test-static-http Mon Feb 08 02:53:41 2010 +0100 @@ -34,7 +34,7 @@ cd .. -hg clone static-http://localhost:$HGPORT/remote local | sed -e 's,:[0-9][0-9]*/,/,' +hg clone static-http://localhost:$HGPORT/remote local | sed -e "s,:$HGPORT/,:\$HGPORT/," cd local hg verify @@ -47,13 +47,13 @@ cd ../local 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,:$HGPORT/,:\$HGPORT/," echo '% trying to push' hg update echo more foo >> bar hg commit -m"test" -d "100000000 0" -hg push | sed -e 's,:[0-9][0-9]*/,/,' +hg push | sed -e "s,:$HGPORT/,:\$HGPORT/," echo '% test with "/" URI (issue 747)' cd .. @@ -62,26 +62,26 @@ hg add a hg ci -ma -hg clone static-http://localhost:$HGPORT/ local2 | sed -e 's,:[0-9][0-9]*/,/,' +hg clone static-http://localhost:$HGPORT/ local2 | sed -e "s,:$HGPORT/,:\$HGPORT/," cd local2 hg verify cat a -hg paths | sed -e 's,:[0-9][0-9]*/,/,' +hg paths | sed -e "s,:$HGPORT/,:\$HGPORT/," echo '% test with empty repo (issue965)' cd .. hg init remotempty -hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e 's,:[0-9][0-9]*/,/,' +hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e "s,:$HGPORT/,:\$HGPORT/," cd local3 hg verify -hg paths | sed -e 's,:[0-9][0-9]*/,/,' +hg paths | sed -e "s,:$HGPORT/,:\$HGPORT/," echo '% test with non-repo' cd .. mkdir notarepo -hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' +hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/," kill $!