Skip to content

Commit de02d8b

Browse files
committed
Improve 'add_ydb_multiple_tests'
1 parent fa026cc commit de02d8b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/testing.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ function(add_ydb_multiple_tests)
186186
set(ARGS_BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
187187
else()
188188
set(test_prefix "${test_prefix}-${ARGS_BASE_DIR}")
189+
if (NOT IS_ABSOLUTE "${ARGS_BASE_DIR}")
190+
set(ARGS_BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${ARGS_BASE_DIR}")
191+
endif()
189192
endif()
190193

191194
list(GET ARGS_FILES 0 firts_file_path)
@@ -198,6 +201,7 @@ function(add_ydb_multiple_tests)
198201
foreach (test_path IN LISTS ARGS_FILES)
199202
get_filename_component(test_suffix "${test_path}" NAME_WLE)
200203

204+
set(file_path_kind_error FALSE)
201205
if (NOT IS_ABSOLUTE "${test_path}")
202206
if (file_path_is_absolute)
203207
set(file_path_kind_error TRUE)

0 commit comments

Comments
 (0)