Mercurial > hg
diff tests/test-ssh.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 | 616e788321cc |
children | 2428e8ec0793 |
line wrap: on
line diff
--- a/tests/test-ssh.t Wed Jul 05 11:09:55 2017 -0500 +++ b/tests/test-ssh.t Wed Jul 05 11:10:11 2017 -0500 @@ -139,7 +139,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 @@ -273,7 +273,7 @@ $ cat <<EOF >> ../remote/.hg/hgrc > [hooks] - > changegroup.stdout = python $TESTTMP/badhook + > changegroup.stdout = $PYTHON $TESTTMP/badhook > changegroup.pystdout = python:$TESTTMP/badpyhook.py:hook > EOF $ echo r > r @@ -380,7 +380,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" @@ -396,7 +396,7 @@ abort: no suitable response from remote hg! [255] - $ SSH_ORIGINAL_COMMAND="'hg' -R 'a'repo' serve --stdio" python "$TESTDIR/../contrib/hg-ssh" + $ SSH_ORIGINAL_COMMAND="'hg' -R 'a'repo' serve --stdio" $PYTHON "$TESTDIR/../contrib/hg-ssh" Illegal command "'hg' -R 'a'repo' serve --stdio": No closing quotation [255] @@ -408,7 +408,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 @@ -455,7 +455,7 @@ > [paths] > default-push = ssh://user@dummy/remote > [ui] - > ssh = python "$TESTDIR/dummyssh" + > ssh = $PYTHON "$TESTDIR/dummyssh" > [extensions] > localwrite = localwrite.py > EOF @@ -477,7 +477,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