diff tests/test-ssh @ 12409:0eaf7d32a5d8

test-ssh: test absolute paths in SSH URLs
author Brodie Rao <brodie@bitheap.org>
date Fri, 24 Sep 2010 15:50:57 -0500
parents 4c94b6d0fb1c
children
line wrap: on
line diff
--- a/tests/test-ssh	Fri Sep 24 15:36:53 2010 -0500
+++ b/tests/test-ssh	Fri Sep 24 15:50:57 2010 -0500
@@ -48,6 +48,9 @@
 echo "# repo not found error"
 hg clone -e "python ./dummyssh" ssh://user@dummy/nonexistent local
 
+echo "# non-existent absolute path"
+hg clone -e "python ./dummyssh" ssh://user@dummy//$HGTMP/nonexistent local
+
 echo "# clone remote via stream"
 hg clone -e "python ./dummyssh" --uncompressed ssh://user@dummy/remote local-stream 2>&1 | \
   sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/'
@@ -108,4 +111,4 @@
 hg -R ../remote heads
 
 cd ..
-cat dummylog
+cat dummylog | sed -e "s,$HGTMP,HGTMP,"