diff --git a/python/paddle/tests/CMakeLists.txt b/python/paddle/tests/CMakeLists.txt index a3191608e29d48bafd8ef9f40527f3176c0c980a..c7402297311754f77b4ba376f9d3d9f79bc702b3 100644 --- a/python/paddle/tests/CMakeLists.txt +++ b/python/paddle/tests/CMakeLists.txt @@ -8,6 +8,10 @@ foreach(TEST_OP ${DIST_TEST_OPS}) list(REMOVE_ITEM TEST_OPS ${TEST_OP}) endforeach() +if(NOT WITH_COVERAGE) + LIST(REMOVE_ITEM TEST_OPS test_hapi_hub) +endif() + foreach(src ${TEST_OPS}) py_test(${src} SRCS ${src}.py) endforeach() @@ -49,8 +53,6 @@ set_tests_properties(test_vision_models PROPERTIES TIMEOUT 120) set_tests_properties(test_dataset_uci_housing PROPERTIES TIMEOUT 120) set_tests_properties(test_dataset_imdb PROPERTIES TIMEOUT 300) set_tests_properties(test_pretrained_model PROPERTIES TIMEOUT 600) -set_tests_properties(test_hapi_hub PROPERTIES TIMEOUT 300) - -if(NOT WITH_COVERAGE) - LIST(REMOVE_ITEM TEST_OPS test_hapi_hub) +if(WITH_COVERAGE) + set_tests_properties(test_hapi_hub PROPERTIES TIMEOUT 300) endif()