未验证 提交 30973183 编写于 作者: L Leo Chen 提交者: GitHub

[new-exec] skip add_dependency when cc_test skipped because of CI_SKIP_CPP_TEST=ON (#38191)

* fix cmake

* not check execution time
上级 672dba1b
...@@ -15,7 +15,7 @@ cc_test(workqueue_test SRCS workqueue_test.cc DEPS workqueue) ...@@ -15,7 +15,7 @@ cc_test(workqueue_test SRCS workqueue_test.cc DEPS workqueue)
# skip win32 since wget is not installed by default on windows machine. # skip win32 since wget is not installed by default on windows machine.
# skip COVERAGE_CI since the test runs slowly because of instrumentation. # skip COVERAGE_CI since the test runs slowly because of instrumentation.
if (WITH_TESTING AND NOT WIN32 AND NOT WITH_COVERAGE) if (WITH_TESTING AND NOT WIN32 AND NOT WITH_COVERAGE AND NOT "$ENV{CI_SKIP_CPP_TEST}" STREQUAL "ON")
add_custom_target( add_custom_target(
download_program download_program
COMMAND wget -nc https://paddle-ci.gz.bcebos.com/new_exec/lm_main_program COMMAND wget -nc https://paddle-ci.gz.bcebos.com/new_exec/lm_main_program
......
...@@ -122,7 +122,7 @@ TEST(StandaloneExecutor, run) { ...@@ -122,7 +122,7 @@ TEST(StandaloneExecutor, run) {
std::chrono::duration<double> diff = end - start; std::chrono::duration<double> diff = end - start;
std::cout << "time cost " << diff.count() << std::endl; std::cout << "time cost " << diff.count() << std::endl;
ASSERT_LT(diff.count(), 30); // ASSERT_LT(diff.count(), 30);
} }
} // namespace framework } // namespace framework
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册