Skip to content

Commit 96a2d06

Browse files
committed
add a NoTablespace ctest label
This label is created automatically on all tests that don't use the Tablespace label.
1 parent b354e44 commit 96a2d06

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

tests/CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ function(set_test test_name)
1616
set_tests_properties(${test_name} PROPERTIES TIMEOUT ${TESTING_TIMEOUT})
1717

1818
if (DEFINED test_param_LABELS)
19-
set_tests_properties(${test_name} PROPERTIES LABELS "${test_param_LABELS}")
20-
21-
list(FIND ${test_param_LABELS} Tablespace test_num_labels)
19+
list(FIND test_param_LABELS Tablespace test_num_labels)
2220
if (${test_num_labels} EQUAL -1)
21+
list(APPEND test_param_LABELS "NoTablespace")
22+
else()
2323
set_tests_properties(${test_name}
2424
PROPERTIES FIXTURES_REQUIRED Tablespace)
2525
endif()
26+
27+
set_tests_properties(${test_name} PROPERTIES LABELS "${test_param_LABELS}")
28+
else()
29+
set_tests_properties(${test_name} PROPERTIES LABELS NoTablespace)
2630
endif()
2731

2832
message(STATUS "Added test: ${test_name}...")

0 commit comments

Comments
 (0)