diff options
author | Michael Dickens <michael.dickens@ettus.com> | 2019-05-23 11:35:15 -0400 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-05-28 16:32:12 -0700 |
commit | f86f1f34befb8b278185d3e6cae22051e5300246 (patch) | |
tree | 27b3bf92b5000a581960642e83a27e767e83be9d /gr-blocks/python | |
parent | e018dd85e1cd3f21b6ca56ad064cf72ff5a74c0d (diff) |
blocks: QA: correct conditions for CTRLPORT tests removal
Diffstat (limited to 'gr-blocks/python')
-rw-r--r-- | gr-blocks/python/blocks/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-blocks/python/blocks/CMakeLists.txt b/gr-blocks/python/blocks/CMakeLists.txt index 2f9c94f9f2..f2d100a2ab 100644 --- a/gr-blocks/python/blocks/CMakeLists.txt +++ b/gr-blocks/python/blocks/CMakeLists.txt @@ -44,14 +44,15 @@ if(ENABLE_TESTING) include(GrTest) file(GLOB py_qa_test_files "qa_*.py") - # Force out the controlport QA tests if we have no backends to use. - if(CTRLPORT_BACKENDS EQUAL 0) + # Force out the controlport QA tests if CTRLPORT is not enabled or + # if it is enabled but we have no backends to use. + if(NOT ENABLE_GR_CTRLPORT OR CTRLPORT_BACKENDS EQUAL 0) list(REMOVE_ITEM py_qa_test_files ${CMAKE_CURRENT_SOURCE_DIR}/qa_cpp_py_binding.py ${CMAKE_CURRENT_SOURCE_DIR}/qa_cpp_py_binding_set.py ${CMAKE_CURRENT_SOURCE_DIR}/qa_ctrlport_probes.py ) - endif(CTRLPORT_BACKENDS EQUAL 0) + endif(NOT ENABLE_GR_CTRLPORT OR CTRLPORT_BACKENDS EQUAL 0) foreach(py_qa_test_file ${py_qa_test_files}) get_filename_component(py_qa_test_name ${py_qa_test_file} NAME_WE) |