summaryrefslogtreecommitdiff
path: root/contrib/remote-helpers/test-hg-hg-git.sh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-17 21:10:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-21 18:59:44 (GMT)
commit02a607260fdbaed7717935df68fb76b1a6e577c0 (patch)
treebf379afa72ed9cd91b36571183af0560957ee562 /contrib/remote-helpers/test-hg-hg-git.sh
parent5e49f30c85ecacec98631462fa73f1148a01637c (diff)
downloadgit-02a607260fdbaed7717935df68fb76b1a6e577c0.zip
git-02a607260fdbaed7717935df68fb76b1a6e577c0.tar.gz
git-02a607260fdbaed7717935df68fb76b1a6e577c0.tar.bz2
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-hg-git.sh')
-rwxr-xr-xcontrib/remote-helpers/test-hg-hg-git.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/remote-helpers/test-hg-hg-git.sh b/contrib/remote-helpers/test-hg-hg-git.sh
index 7f579c8..1a212b8 100755
--- a/contrib/remote-helpers/test-hg-hg-git.sh
+++ b/contrib/remote-helpers/test-hg-hg-git.sh
@@ -15,12 +15,12 @@ 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
-if ! "$PYTHON_PATH" -c 'import hggit'; then
+if ! python -c 'import hggit'; then
skip_all='skipping remote-hg tests; hg-git not available'
test_done
fi