未验证 提交 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) ...@@ -431,6 +431,8 @@ function(cc_test_run TARGET_NAME)
if (APPLE) if (APPLE)
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 20) set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 20)
endif() endif()
elseif(WITH_TESTING AND NOT TEST ${TARGET_NAME})
add_test(NAME ${TARGET_NAME} COMMAND ${CMAKE_COMMAND} -E echo CI skip ${TARGET_NAME}.)
endif() endif()
endfunction() endfunction()
...@@ -459,6 +461,8 @@ function(cc_test TARGET_NAME) ...@@ -459,6 +461,8 @@ function(cc_test TARGET_NAME)
COMMAND ${TARGET_NAME} COMMAND ${TARGET_NAME}
ARGS ${cc_test_ARGS}) ARGS ${cc_test_ARGS})
endif() endif()
elseif(WITH_TESTING AND NOT TEST ${TARGET_NAME})
add_test(NAME ${TARGET_NAME} COMMAND ${CMAKE_COMMAND} -E echo CI skip ${TARGET_NAME}.)
endif() endif()
endfunction(cc_test) endfunction(cc_test)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册