diff options
author | Hans Johnson <hans-johnson@uiowa.edu> | 2016-07-29 06:06:50 -0500 |
---|---|---|
committer | Hans Johnson <hans-johnson@uiowa.edu> | 2016-07-29 06:10:08 -0500 |
commit | c6e24106168f718376372fb85e8ef4b232412903 (patch) | |
tree | 29a9b4950bbc7c7f946b3bbf6dd9adb11c895397 /CTestCustom.cmake.in | |
parent | 86f6b1e63e1e884866fda2167499fb98410384fb (diff) |
ENH: Only run python summary tests with compatible versions
The summary tests python script requires features that are
only available in python 2.7 and greater. If the python
version is insufficient, simply disable the summary tests.
This was identified on a nightly dashboard build zoot.icl.utk.edu
where the python version found is 2.4.
Diffstat (limited to 'CTestCustom.cmake.in')
-rw-r--r-- | CTestCustom.cmake.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in index 19469afe..5fc823a7 100644 --- a/CTestCustom.cmake.in +++ b/CTestCustom.cmake.in @@ -43,4 +43,10 @@ set(CTEST_CUSTOM_WARNING_EXCEPTION "Character string truncated to length 1 on assignment" ) -set(CTEST_CUSTOM_POST_TEST "./lapack_testing.py -s -d TESTING")
\ No newline at end of file +# Only rung post test if suitable python interpreter was found +set(PYTHONINTERP_FOUND @PYTHONINTERP_FOUND@) +set(PYTHON_EXECUTABLE @PYTHON_EXECUTABLE@) +if(PYTHONINTERP_FOUND) + set(CTEST_CUSTOM_POST_TEST "${PYTHON_EXECUTABLE} ./lapack_testing.py -s -d TESTING") +endif() + |