Skip to content
Snippets Groups Projects
Commit c3ecbf69 authored by Matt Mackall's avatar Matt Mackall
Browse files

tests: remove duplicate inline dummyssh in test-wireproto.t

parent 8c14f87b
No related branches found
No related tags found
No related merge requests found
......@@ -90,18 +90,5 @@
SSH (try to exercise the ssh functionality with a dummy script):
$ cat <<EOF > dummyssh
> import sys
> import os
> os.chdir(os.path.dirname(sys.argv[0]))
> if sys.argv[1] != "user@dummy":
> sys.exit(-1)
> if not os.path.exists("dummyssh"):
> sys.exit(-1)
> os.environ["SSH_CLIENT"] = "127.0.0.1 1 2"
> r = os.system(sys.argv[2])
> sys.exit(bool(r))
> EOF
$ hg debugwireargs --ssh "python ./dummyssh" ssh://user@dummy/repo uno due tre quattro
$ hg debugwireargs --ssh dummyssh ssh://user@dummy/repo uno due tre quattro
uno due tre quattro None
......@@ -107,3 +94,3 @@
uno due tre quattro None
$ hg debugwireargs --ssh "python ./dummyssh" ssh://user@dummy/repo eins zwei --four vier
$ hg debugwireargs --ssh dummyssh ssh://user@dummy/repo eins zwei --four vier
eins zwei None vier None
......@@ -109,3 +96,3 @@
eins zwei None vier None
$ hg debugwireargs --ssh "python ./dummyssh" ssh://user@dummy/repo eins zwei
$ hg debugwireargs --ssh dummyssh ssh://user@dummy/repo eins zwei
eins zwei None None None
......@@ -111,5 +98,5 @@
eins zwei None None None
$ hg debugwireargs --ssh "python ./dummyssh" ssh://user@dummy/repo eins zwei --five fuenf
$ hg debugwireargs --ssh dummyssh ssh://user@dummy/repo eins zwei --five fuenf
eins zwei None None None
Explicitly kill daemons to let the test exit on Windows
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment