changeset 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 78a97859b90d
children 2bfb335c7594
files tests/test-ssh tests/test-ssh.out
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
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,"
--- a/tests/test-ssh.out	Fri Sep 24 15:36:53 2010 -0500
+++ b/tests/test-ssh.out	Fri Sep 24 15:50:57 2010 -0500
@@ -2,6 +2,9 @@
 # repo not found error
 remote: abort: There is no Mercurial repository here (.hg not found)!
 abort: no suitable response from remote hg!
+# non-existent absolute path
+remote: abort: There is no Mercurial repository here (.hg not found)!
+abort: no suitable response from remote hg!
 # clone remote via stream
 streaming all changes
 XXX files to transfer, XXX bytes of data
@@ -96,6 +99,7 @@
 summary:     z
 
 Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio
+Got arguments 1:user@dummy 2:hg -R /HGTMP/nonexistent serve --stdio
 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
 Got arguments 1:user@dummy 2:hg -R remote serve --stdio