未验证 提交 3d76d003 编写于 作者: W wuhuanzhou 提交者: GitHub

fix CI skip cc test error (#35264)

* fix CI skip cc test error, test=develop

* remove test code, test=develop
上级 2100816c
......@@ -431,6 +431,8 @@ function(cc_test_run TARGET_NAME)
if (APPLE)
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 20)
endif()
elseif(WITH_TESTING AND NOT TEST ${TARGET_NAME})
add_test(NAME ${TARGET_NAME} COMMAND ${CMAKE_COMMAND} -E echo CI skip ${TARGET_NAME}.)
endif()
endfunction()
......@@ -459,6 +461,8 @@ function(cc_test TARGET_NAME)
COMMAND ${TARGET_NAME}
ARGS ${cc_test_ARGS})
endif()
elseif(WITH_TESTING AND NOT TEST ${TARGET_NAME})
add_test(NAME ${TARGET_NAME} COMMAND ${CMAKE_COMMAND} -E echo CI skip ${TARGET_NAME}.)
endif()
endfunction(cc_test)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册