From b3e977d7c112fd274e0c86a18351f2663a234674 Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Mon, 14 Jan 2019 19:09:03 -0800 Subject: [PATCH] Apply test directory as a label. This isn't ideal, as it makes `restarting/from_5.2.0/potato.txt` have the label "from_5.2.0" instead of "restarting", but it does make the fast label work right. --- fdbserver/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fdbserver/CMakeLists.txt b/fdbserver/CMakeLists.txt index ac187d06ff..08611e3b23 100644 --- a/fdbserver/CMakeLists.txt +++ b/fdbserver/CMakeLists.txt @@ -247,7 +247,9 @@ function(add_fdb_test) ${BUGGIFY_OPTION} ${ADD_FDB_TEST_TEST_FILES} WORKING_DIRECTORY ${PROJECT_BINARY_DIR}) - set_tests_properties(${test_name} PROPERTIES TIMEOUT ${this_test_timeout}) + 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}") endfunction() add_fdb_test(TEST_FILES ${PROJECT_SOURCE_DIR}/tests/AsyncFileCorrectness.txt UNIT)