[PATCH] test-ssh: test absolute paths in SSH URLs
Brodie Rao
brodie at bitheap.org
Fri Sep 24 15:52:40 CDT 2010
# HG changeset patch
# User Brodie Rao <brodie at bitheap.org>
# Date 1285361457 18000
# Node ID 28dd6225f78b91f08cbe23c53e6c052a89a8d936
# Parent 4cdaf1adafc80ab9d63a12b27699b378142a5004
test-ssh: test absolute paths in SSH URLs
diff --git a/tests/test-ssh b/tests/test-ssh
--- a/tests/test-ssh
+++ b/tests/test-ssh
@@ -48,6 +48,9 @@ cd ..
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//abspath 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/'
diff --git a/tests/test-ssh.out b/tests/test-ssh.out
--- a/tests/test-ssh.out
+++ b/tests/test-ssh.out
@@ -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 @@ date: Thu Jan 01 00:00:00 1970 +0
summary: z
Got arguments 1:user at dummy 2:hg -R nonexistent serve --stdio
+Got arguments 1:user at dummy 2:hg -R /abspath serve --stdio
Got arguments 1:user at dummy 2:hg -R remote serve --stdio
Got arguments 1:user at dummy 2:hg -R remote serve --stdio
Got arguments 1:user at dummy 2:hg -R remote serve --stdio
More information about the Mercurial-devel
mailing list