##// END OF EJS Templates
tests: remove duplicate inline dummyssh in test-wireproto.t
Matt Mackall -
r25475:c3ecbf69 default
parent child Browse files
Show More
@@ -90,26 +90,13 b' HTTP without the httpheader capability:'
90
90
91 SSH (try to exercise the ssh functionality with a dummy script):
91 SSH (try to exercise the ssh functionality with a dummy script):
92
92
93 $ cat <<EOF > dummyssh
93 $ hg debugwireargs --ssh dummyssh ssh://user@dummy/repo uno due tre quattro
94 > import sys
95 > import os
96 > os.chdir(os.path.dirname(sys.argv[0]))
97 > if sys.argv[1] != "user@dummy":
98 > sys.exit(-1)
99 > if not os.path.exists("dummyssh"):
100 > sys.exit(-1)
101 > os.environ["SSH_CLIENT"] = "127.0.0.1 1 2"
102 > r = os.system(sys.argv[2])
103 > sys.exit(bool(r))
104 > EOF
105
106 $ hg debugwireargs --ssh "python ./dummyssh" ssh://user@dummy/repo uno due tre quattro
107 uno due tre quattro None
94 uno due tre quattro None
108 $ hg debugwireargs --ssh "python ./dummyssh" ssh://user@dummy/repo eins zwei --four vier
95 $ hg debugwireargs --ssh dummyssh ssh://user@dummy/repo eins zwei --four vier
109 eins zwei None vier None
96 eins zwei None vier None
110 $ hg debugwireargs --ssh "python ./dummyssh" ssh://user@dummy/repo eins zwei
97 $ hg debugwireargs --ssh dummyssh ssh://user@dummy/repo eins zwei
111 eins zwei None None None
98 eins zwei None None None
112 $ hg debugwireargs --ssh "python ./dummyssh" ssh://user@dummy/repo eins zwei --five fuenf
99 $ hg debugwireargs --ssh dummyssh ssh://user@dummy/repo eins zwei --five fuenf
113 eins zwei None None None
100 eins zwei None None None
114
101
115 Explicitly kill daemons to let the test exit on Windows
102 Explicitly kill daemons to let the test exit on Windows
General Comments 0
You need to be logged in to leave comments. Login now