Fix addFdbTest

This commit is contained in:
Alex Miller 2019-06-25 21:57:09 -07:00
parent 83fae6cc15
commit 30b27349a7
1 changed files with 4 additions and 2 deletions

View File

@ -123,6 +123,8 @@ function(add_fdb_test)
${ADD_FDB_TEST_TEST_FILES}
WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
get_filename_component(test_dir_full ${first_file} DIRECTORY)
get_filename_component(test_dir ${test_dir_full} NAME)
set_tests_properties(${test_name} PROPERTIES TIMEOUT ${this_test_timeout} LABELS "${test_dir}")
if(NOT ${test_dir_full} STREQUAL "")
get_filename_component(test_dir ${test_dir_full} NAME)
set_tests_properties(${test_name} PROPERTIES TIMEOUT ${this_test_timeout} LABELS "${test_dir}")
endif()
endfunction()