summaryrefslogtreecommitdiff
path: root/t/t5800-remote-helpers.sh
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2010-06-02 00:13:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-06-02 16:26:35 (GMT)
commit2bf1033478a65c1067e1a7922a91406c797852ed (patch)
tree147052cc2bcb87e68cfa7f7bcca5e90cfd1e6740 /t/t5800-remote-helpers.sh
parent225c93a3cac93e8c619e5c8af47d2a781eedcacd (diff)
downloadgit-2bf1033478a65c1067e1a7922a91406c797852ed.zip
git-2bf1033478a65c1067e1a7922a91406c797852ed.tar.gz
git-2bf1033478a65c1067e1a7922a91406c797852ed.tar.bz2
t/t5800: skip if python version is older than 2.5
This test script depends on the git-remote-testgit python script. This python script makes use of the hashlib module which was released in python version 2.5. So, add a new pre-requisite named PYTHON_2_5_OR_NEWER to test-lib.sh and check for it in t5800. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5800-remote-helpers.sh')
-rwxr-xr-xt/t5800-remote-helpers.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/t/t5800-remote-helpers.sh b/t/t5800-remote-helpers.sh
index 75a0163..22c7df4 100755
--- a/t/t5800-remote-helpers.sh
+++ b/t/t5800-remote-helpers.sh
@@ -7,9 +7,15 @@ test_description='Test remote-helper import and export commands'
. ./test-lib.sh
-if ! test_have_prereq PYTHON
+if test_have_prereq PYTHON && "$PYTHON_PATH" -c '
+import sys
+if sys.hexversion < 0x02050000:
+ sys.exit(1)
+'
then
- say 'skipping git remote-testgit tests: requires Python support'
+ :
+else
+ say 'skipping git remote-testgit tests: requires Python 2.5 or newer'
test_done
fi