diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d6af4fc67..264780c36 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -26,19 +26,24 @@ add_test(NAME check_complete_file COMMAND pytest --inputfile=${CMAKE_BINARY_DIR} set_test_env(check_complete_file) set_tests_properties( check_complete_file - PROPERTIES DEPENDS create_complete_file - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) add_test(NAME check_complete_file_rntuple COMMAND pytest --inputfile=${CMAKE_BINARY_DIR}/test/edm4hep_example_rntuple.root -v) set_test_env(check_complete_file_rntuple) set_tests_properties( check_complete_file_rntuple - PROPERTIES DEPENDS create_complete_file_rntuple +) + +set_tests_properties( + check_complete_file + check_complete_file_rntuple + + PROPERTIES WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + FAIL_REGULAR_EXPRESSION "" ) add_executable(write_events write_events.cc) diff --git a/test/pytest.ini b/test/pytest.ini index a7b3a8e77..10cf4e47f 100644 --- a/test/pytest.ini +++ b/test/pytest.ini @@ -1,2 +1,2 @@ [pytest] -addopts = --ignore=test_rdf.py --ignore=tools +addopts = --ignore=test_rdf.py --ignore=tools --ignore=utils