Patchwork [1,of,2] test-ssh: remove superfluous triple slashes from absolute path test

login
register
mail settings
Submitter Yuya Nishihara
Date Sept. 2, 2015, 2:53 p.m.
Message ID <5163ebffa5fbc6283893.1441205586@mimosa>
Download mbox | patch
Permalink /patch/10366/
State Accepted
Headers show

Comments

Yuya Nishihara - Sept. 2, 2015, 2:53 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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.

Patch

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@dummy 2:hg -R nonexistent serve --stdio
-  Got arguments 1:user@dummy 2:hg -R /$TESTTMP/nonexistent serve --stdio
+  Got arguments 1:user@dummy 2:hg -R $TESTTMP/nonexistent serve --stdio
   Got arguments 1:user@dummy 2:hg -R remote serve --stdio
   Got arguments 1:user@dummy 2:hg -R local-stream serve --stdio
   Got arguments 1:user@dummy 2:hg -R remote serve --stdio