Skip to content

Commit 308d1dc

Browse files
authored
Fix disabled tests behavior (#228)
1 parent 7656179 commit 308d1dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tasks/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ foreach(TASK_TYPE ${LIST_OF_TASKS})
4949

5050
SUBDIRLIST(subdirs ${PATH_TO_TASK})
5151
foreach(subd ${subdirs})
52+
if ("${subd}" MATCHES "_disabled$")
53+
message(WARNING " -- SKIPPED func and perf tests for ${PATH_TO_TASK}/${subd}")
54+
continue()
55+
endif()
5256
get_filename_component(PROJECT_ID ${subd} NAME)
5357
set(PATH_PREFIX "${PATH_TO_TASK}/${subd}")
5458
message(STATUS "-- ${PROJECT_ID}${project_suffix}")
@@ -59,10 +63,6 @@ foreach(TASK_TYPE ${LIST_OF_TASKS})
5963
file(GLOB SRC_RES "${PATH_PREFIX}/src/*")
6064
list(APPEND SRC_RES ${TMP_SRC_RES})
6165

62-
if ("${subd}" MATCHES "_disabled$")
63-
message(WARNING " -- SKIPPED func and perf tests for ${PATH_TO_TASK}/${subd}")
64-
continue()
65-
endif()
6666
file(GLOB_RECURSE TMP_FUNC_TESTS_SOURCE_FILES "${PATH_PREFIX}/func_tests/*")
6767
list(APPEND FUNC_TESTS_SOURCE_FILES ${TMP_FUNC_TESTS_SOURCE_FILES})
6868

0 commit comments

Comments
 (0)