diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-05-17 16:10:07 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-21 11:59:44 -0700 |
commit | 02a607260fdbaed7717935df68fb76b1a6e577c0 (patch) | |
tree | bf379afa72ed9cd91b36571183af0560957ee562 /contrib/remote-helpers/test-hg.sh | |
parent | 5e49f30c85ecacec98631462fa73f1148a01637c (diff) | |
download | git-02a607260fdbaed7717935df68fb76b1a6e577c0.tar.gz |
remote-helpers: tests: use python directly
These remote helpers use 'env python', not PYTHON_PATH, so that's where
we should check for the extensions. Otherwise, if 'python' is not
PYTHON_PATH (e.g. /usr/bin/python: Makefile's default), there will be a
mismatch between the python libraries actually accessible to the remote
helpers.
Suggested by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/remote-helpers/test-hg.sh')
-rwxr-xr-x | contrib/remote-helpers/test-hg.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh index 8de2aa7fec..ce03fa317e 100755 --- a/contrib/remote-helpers/test-hg.sh +++ b/contrib/remote-helpers/test-hg.sh @@ -15,7 +15,7 @@ if ! test_have_prereq PYTHON; then test_done fi -if ! "$PYTHON_PATH" -c 'import mercurial'; then +if ! python -c 'import mercurial'; then skip_all='skipping remote-hg tests; mercurial not available' test_done fi |