未验证 提交 72c78e4d 编写于 作者: Y YUNSHEN XIE 提交者: GitHub

exec ut no more than 15s 2 (#28441)

* exec ut no more than 15s 2

* fix for ut test_inplace_addto_strategy timeout
上级 ba075632
......@@ -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()
......@@ -758,10 +758,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 15)
endif()
endif()
......
......@@ -215,7 +215,7 @@ function(py_test_modules TARGET_NAME)
set_property(TEST ${TARGET_NAME} PROPERTY RUN_SERIAL 1)
endif()
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 350)
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 15)
endif()
endfunction()
......@@ -776,3 +776,4 @@ endif()
if(WITH_GPU)
set_tests_properties(test_imperative_auto_mixed_precision PROPERTIES TIMEOUT 120)
endif()
set_tests_properties(test_inplace_addto_strategy PROPERTIES TIMEOUT 120)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册