Skip to content
Snippets Groups Projects
Commit 9fe42da1 authored by pcherenkov's avatar pcherenkov
Browse files

bug741767: added constraint against python 3.x

parent afa55875
No related branches found
No related tags found
No related merge requests found
......@@ -2,11 +2,11 @@
/usr/bin/env python <<__EOB__
import sys
if sys.hexversion < 0x02070000:
print >>sys.stderr, "Test harness must use python > 2.6"
exit(1)
if sys.hexversion < 0x02070000 or sys.hexversion >= 0x03000000:
sys.stderr.write("ERROR: test harness must use python >= 2.6 but not 3.x\n")
sys.exit(1)
else:
exit(0)
sys.exit(0)
__EOB__
[ $? -eq 0 ] && ./test-run.py $*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment