Mercurial > public > mercurial-scm > hg-stable
diff tests/test-init.t @ 25495:c63bf97cf7c7
tests: restore 'python' and '$TESTDIR/' for dummyssh invocation
This is a backout of 46727fea7a00, and a partial backout of c3ecbf694904.
Windows won't execute 'dummyssh' directly, presumably because CreateProcess()
doesn't know how to execute a bash script:
$ hg clone -e "dummyssh" ssh://user@dummy/cloned sshclone
remote: 'dummyssh' is not recognized as an internal or external command,
remote: operable program or batch file.
abort: no suitable response from remote hg!
[255]
With the restoration of python as the executable, $TESTDIR needs to be restored
for these invocations, because python won't search $PATH for 'dummyssh':
$ hg clone -e "python dummyssh" ssh://user@dummy/cloned sshclone
remote: python: can't open file 'dummyssh': [Errno 2] No such file or directory
abort: no suitable response from remote hg!
[255]
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 09 Jun 2015 21:39:33 -0400 |
parents | 46727fea7a00 |
children | b11495c2a7e2 |
line wrap: on
line diff
--- a/tests/test-init.t Tue Jun 09 15:18:47 2015 -0700 +++ b/tests/test-init.t Tue Jun 09 21:39:33 2015 -0400 @@ -84,7 +84,7 @@ init+push to remote2 - $ hg init -e dummyssh ssh://user@dummy/remote2 + $ hg init -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2 $ hg incoming -R remote2 local comparing with local changeset: 0:08b9e9f63b32 @@ -94,7 +94,7 @@ summary: init - $ hg push -R local -e dummyssh ssh://user@dummy/remote2 + $ hg push -R local -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2 pushing to ssh://user@dummy/remote2 searching for changes remote: adding changesets @@ -104,7 +104,7 @@ clone to remote1 - $ hg clone -e dummyssh local ssh://user@dummy/remote1 + $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1 searching for changes remote: adding changesets remote: adding manifests @@ -112,7 +112,7 @@ remote: added 1 changesets with 1 changes to 1 files The largefiles extension doesn't crash - $ hg clone -e dummyssh local ssh://user@dummy/remotelf --config extensions.largefiles= + $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remotelf --config extensions.largefiles= searching for changes remote: adding changesets remote: adding manifests @@ -121,14 +121,14 @@ init to existing repo - $ hg init -e dummyssh ssh://user@dummy/remote1 + $ hg init -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote1 abort: repository remote1 already exists! abort: could not create remote repo! [255] clone to existing repo - $ hg clone -e dummyssh local ssh://user@dummy/remote1 + $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1 abort: repository remote1 already exists! abort: could not create remote repo! [255] @@ -224,7 +224,7 @@ $ hg -R local bookmark test $ hg -R local bookmarks * test 0:08b9e9f63b32 - $ hg clone -e dummyssh local ssh://user@dummy/remote-bookmarks + $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote-bookmarks searching for changes remote: adding changesets remote: adding manifests