[PATCH 1 of 2] test-ssh: remove superfluous triple slashes from absolute path test
Yuya Nishihara
yuya at tcha.org
Wed Sep 2 14:53:06 UTC 2015
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1441093132 -32400
# Tue Sep 01 16:38:52 2015 +0900
# Node ID 5163ebffa5fbc6283893c3287d2d15e92caca540
# Parent f77a3f27cea533232dc107a72773e90e2de9549d
test-ssh: remove superfluous triple slashes from absolute path test
Because pwd should start with "/", "/`pwd`" is enough to make absolute path.
diff --git a/tests/test-ssh.t b/tests/test-ssh.t
--- a/tests/test-ssh.t
+++ b/tests/test-ssh.t
@@ -40,7 +40,7 @@ repo not found error
non-existent absolute path
- $ hg clone -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy//`pwd`/nonexistent local
+ $ hg clone -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/nonexistent local
remote: abort: there is no Mercurial repository here (.hg not found)!
abort: no suitable response from remote hg!
[255]
@@ -471,7 +471,7 @@ debug output
$ cat dummylog
Got arguments 1:user at dummy 2:hg -R nonexistent serve --stdio
- Got arguments 1:user at dummy 2:hg -R /$TESTTMP/nonexistent serve --stdio
+ Got arguments 1:user at dummy 2:hg -R $TESTTMP/nonexistent serve --stdio
Got arguments 1:user at dummy 2:hg -R remote serve --stdio
Got arguments 1:user at dummy 2:hg -R local-stream serve --stdio
Got arguments 1:user at dummy 2:hg -R remote serve --stdio
More information about the Mercurial-devel
mailing list