提交 c7c88ac9 编写于 作者: C chalsliu

Set ut timeout value

上级 47fdc60e
......@@ -386,9 +386,9 @@ function(cc_test_run TARGET_NAME)
set_property(TEST ${TARGET_NAME} PROPERTY ENVIRONMENT FLAGS_cudnn_deterministic=true)
# No unit test should exceed 2 minutes.
if (APPLE OR WIN32)
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 150)
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 20)
else()
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 120)
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 15)
endif()
endif()
endfunction()
......@@ -748,10 +748,10 @@ function(py_test TARGET_NAME)
endif()
if (APPLE OR WIN32)
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 150)
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 20)
else()
# No unit test should exceed 2 minutes in Linux.
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 120)
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 20)
endif()
endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册