Diff options
Diffstat (limited to 'tests/t0401-serve.sh')
| -rwxr-xr-x | tests/t0401-serve.sh | 9 |
1 file changed, 7 insertions, 2 deletions
diff --git a/tests/t0401-serve.sh b/tests/t0401-serve.sh index 341bbb6..4a2d08b 100755 --- a/tests/t0401-serve.sh +++ b/tests/t0401-serve.sh @@ -9,8 +9,13 @@ test_description='Check the preview server splits CGI output correctly' CGIT_TEST_NO_CREATE_REPOS=YesPlease . ./setup.sh -command -v python3 >/dev/null 2>&1 || { - skip_all='Skipping preview server tests: python3 not found' +# serve.py uses syntax that came with Python 3.8. +test_lazy_prereq PYTHON ' + python3 -c "import sys; sys.exit(sys.version_info < (3, 8))" +' + +test_have_prereq PYTHON || { + skip_all='Skipping preview server tests: no python3 3.8 or later' test_done } |
