Thread (31 messages) flat view 31 messages, 8 authors, 2016-06-15

Re: [PATCH 1/5] t/t5800: skip if python version is older than 2.5

From: Brandon Casey <hidden>
Date: 2016-06-15 22:48:54

On 06/02/2010 01:37 AM, Johannes Sixt wrote:
Am 6/2/2010 2:13, schrieb Brandon Casey:
quoted
+if ! test_have_prereq PYTHON_2_5_OR_NEWER
 then
+	say 'skipping git remote-testgit tests: requires Python 2.5 or newer'
...
quoted
+++ b/t/test-lib.sh
+if test_have_prereq PYTHON && "$PYTHON_PATH" -c '
+import sys
+if sys.hexversion < 0x02050000:
+    sys.exit(1)
+'
+then
+	test_set_prereq PYTHON_2_5_OR_NEWER
+fi
Please don't burden all test script invocations with this check when the
result is used in only one place.
Very good point.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help