Mercurial > public > mercurial-scm > hg
diff tests/test-ssh-bundle1.t @ 33262:8e6f4939a69a
tests: replace yet more calls to `python` with $PYTHON
These are some simple cases. More to come in a future change.
Reviewers: krbullock
Reviewed By: krbullock
Differential Revision: https://phab.mercurial-scm.org/D4
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 05 Jul 2017 11:10:11 -0500 |
parents | aff7b32b3c05 |
children | 2428e8ec0793 |
line wrap: on
line diff
--- a/tests/test-ssh-bundle1.t Wed Jul 05 11:09:55 2017 -0500 +++ b/tests/test-ssh-bundle1.t Wed Jul 05 11:10:11 2017 -0500 @@ -145,7 +145,7 @@ $ echo "default-push = ssh://user@dummy/remote" >> .hg/hgrc $ echo "[ui]" >> .hg/hgrc - $ echo "ssh = python \"$TESTDIR/dummyssh\"" >> .hg/hgrc + $ echo "ssh = $PYTHON \"$TESTDIR/dummyssh\"" >> .hg/hgrc find outgoing @@ -272,7 +272,7 @@ > EOF $ echo '[hooks]' >> ../remote/.hg/hgrc - $ echo "changegroup.stdout = python $TESTTMP/badhook" >> ../remote/.hg/hgrc + $ echo "changegroup.stdout = $PYTHON $TESTTMP/badhook" >> ../remote/.hg/hgrc $ echo r > r $ hg ci -A -m z r @@ -363,7 +363,7 @@ > export SSH_ORIGINAL_COMMAND > PYTHONPATH="$PYTHONPATH" > export PYTHONPATH - > python "$TESTDIR/../contrib/hg-ssh" "$TESTTMP/a repo" + > $PYTHON "$TESTDIR/../contrib/hg-ssh" "$TESTTMP/a repo" > EOF $ hg id --ssh "sh ssh.sh" "ssh://user@dummy/a repo" @@ -379,7 +379,7 @@ abort: no suitable response from remote hg! [255] - $ SSH_ORIGINAL_COMMAND="'hg' serve -R 'a'repo' --stdio" python "$TESTDIR/../contrib/hg-ssh" + $ SSH_ORIGINAL_COMMAND="'hg' serve -R 'a'repo' --stdio" $PYTHON "$TESTDIR/../contrib/hg-ssh" Illegal command "'hg' serve -R 'a'repo' --stdio": No closing quotation [255] @@ -391,7 +391,7 @@ > export SSH_ORIGINAL_COMMAND > PYTHONPATH="$PYTHONPATH" > export PYTHONPATH - > python "$TESTDIR/../contrib/hg-ssh" --read-only "$TESTTMP/remote" + > $PYTHON "$TESTDIR/../contrib/hg-ssh" --read-only "$TESTTMP/remote" > EOF $ hg clone --ssh "sh ssh.sh" "ssh://user@dummy/$TESTTMP/remote" read-only-local @@ -440,7 +440,7 @@ > [paths] > default-push = ssh://user@dummy/remote > [ui] - > ssh = python "$TESTDIR/dummyssh" + > ssh = $PYTHON "$TESTDIR/dummyssh" > [extensions] > localwrite = localwrite.py > EOF @@ -461,7 +461,7 @@ $ hg pull --debug ssh://user@dummy/remote pulling from ssh://user@dummy/remote - running python ".*/dummyssh" user@dummy ('|")hg -R remote serve --stdio('|") (re) + running .* ".*/dummyssh" user@dummy ('|")hg -R remote serve --stdio('|") (re) sending hello command sending between command remote: 355