未验证 提交 cb34cf18 编写于 作者: C chalsliu 提交者: GitHub

Set timeout value on windows and mac (#27197)

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