From 6b5034de87f41d406cca0bfd83d323a23f470c1f Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 6 Nov 2023 15:33:36 +0100 Subject: [PATCH] Fix CMakeLists.txt --- python/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 2613f7d6a..2ad2ee756 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -34,14 +34,12 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/templates DESTINATION ${podio_PYTHON_INSTALLDIR}) IF (BUILD_TESTING) - add_test( NAME pyunittest COMMAND python3 -m unittest discover -s ${PROJECT_SOURCE_DIR}/python/podio) + add_test( NAME pyunittest COMMAND python3 -m unittest discover -s ${PROJECT_SOURCE_DIR}/python/podio -p "test_*.py") PODIO_SET_TEST_ENV(pyunittest) - add_test( NAME pyunittest_gen COMMAND python3 -m unittest discover -s ${PROJECT_SOURCE_DIR}/python/podio_gen) - PODIO_SET_TEST_ENV(pyunittest_gen) set_property(TEST pyunittest PROPERTY DEPENDS write write_frame_root) if (TARGET write_sio) set_property(TEST pyunittest PROPERTY DEPENDS write_sio write_frame_sio) endif() - set_tests_properties(pyunittest pyunittest_gen PROPERTIES WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/tests) + set_property(TEST pyunittest PROPERTY WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/tests) ENDIF()