File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -1652,18 +1652,14 @@ function(ROOT_ADD_TEST test)
1652
1652
set_tests_properties (${test} PROPERTIES LABELS "${ARG_LABELS} " )
1653
1653
endif ()
1654
1654
1655
- if (ARG_PYTHON_DEPS )
1656
- foreach (python_dep ${ARG_PYTHON_DEPS} )
1657
- if (NOT TEST test -import-${python_dep} )
1658
- add_test (NAME test -import-${python_dep} COMMAND ${PYTHON_EXECUTABLE_Development_Main} -c "import ${python_dep} " )
1659
- set_tests_properties (test -import-${python_dep} PROPERTIES FIXTURES_SETUP requires_${python_dep} )
1660
- endif ()
1661
- list (APPEND fixtures "requires_${python_dep} " )
1662
- endforeach ()
1663
- if (fixtures )
1664
- set_tests_properties (${test} PROPERTIES FIXTURES_REQUIRED "${fixtures} " )
1655
+ foreach (python_dep ${ARG_PYTHON_DEPS} )
1656
+ set (fixture_name requires_${python_dep} )
1657
+ set_property (TEST ${test} APPEND PROPERTY FIXTURES_REQUIRED ${fixture_name} )
1658
+ if (NOT TEST test -import-${python_dep} )
1659
+ add_test (NAME test -import-${python_dep} COMMAND ${PYTHON_EXECUTABLE_Development_Main} -c "import ${python_dep} " )
1660
+ set_tests_properties (test -import-${python_dep} PROPERTIES FIXTURES_SETUP ${fixture_name} )
1665
1661
endif ()
1666
- endif ()
1662
+ endforeach ()
1667
1663
1668
1664
if (ARG_RUN_SERIAL )
1669
1665
set_property (TEST ${test} PROPERTY RUN_SERIAL true )
You can’t perform that action at this time.
0 commit comments