From 880bdb48d44ac5afbf7269661363924844d2627e Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 2 Jun 2022 15:45:25 +0200 Subject: [PATCH] Simplify test properties --- test/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 9b2826d..5ecf2bc 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -25,12 +25,10 @@ macro(ovni_test name driver) COMMAND "${OVNI_TEST_SOURCE_DIR}/${driver}" "${name}" WORKING_DIRECTORY "${OVNI_TEST_BUILD_DIR}") + set_property(TEST "${name}" PROPERTY RUN_SERIAL TRUE) + if("${name}" MATCHES ".*-bad") - set_tests_properties("${name}" - PROPERTIES RUN_SERIAL TRUE WILL_FAIL TRUE) - else() - set_tests_properties("${name}" - PROPERTIES RUN_SERIAL TRUE) + set_property(TEST "${name}" PROPERTY WILL_FAIL TRUE) endif() endmacro()