From 965b2cf598f49068e9361cb9c30a1bdc08abe181 Mon Sep 17 00:00:00 2001 From: jparisu Date: Fri, 23 Jun 2023 13:42:06 +0200 Subject: [PATCH] Append test labels instead of override them Signed-off-by: jparisu --- cmake_utils/cmake/test/test_labels.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake_utils/cmake/test/test_labels.cmake b/cmake_utils/cmake/test/test_labels.cmake index bf4a3ec6..93869d78 100644 --- a/cmake_utils/cmake/test/test_labels.cmake +++ b/cmake_utils/cmake/test/test_labels.cmake @@ -52,7 +52,10 @@ macro(check_and_add_tests_label TEST_NAME TEST_LABEL_LIST LABEL) if(${TEST_NAME} IN_LIST "${TEST_LABEL_LIST}") message(STATUS "Setting label ${LABEL} to test ${TEST_NAME}") - set_property(TEST ${TEST_NAME} PROPERTY LABELS ${LABEL}) + # NOTE: set_property override other labels, it must append new label + get_property(CURRENT_LABELS TEST ${TEST_NAME} PROPERTY LABELS) + list(APPEND CURRENT_LABELS ${LABEL}) + set_property(TEST ${TEST_NAME} PROPERTY LABELS ${CURRENT_LABELS}) endif() endmacro()