提交 4c11ef0e 编写于 作者: X XieYunshen

test for setting timeout value as 15s

上级 7ba6279a
......@@ -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 15)
endif()
endif()
......
......@@ -208,7 +208,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()
......@@ -224,7 +224,7 @@ function(bash_test_modules TARGET_NAME)
cmake_parse_arguments(bash_test_modules "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
set(timeout 350)
set(timeout 15)
if(${bash_test_modules_TIMEOUT})
set(timeout ${bash_test_modules_TIMEOUT})
endif()
......@@ -266,7 +266,7 @@ function(parallel_bash_test_modules TARGET_NAME)
cmake_parse_arguments(parallel_bash_test_modules "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
set(timeout 120)
set(timeout 15)
if(${parallel_bash_test_modules_TIMEOUT})
set(timeout ${parallel_bash_test_modules_TIMEOUT})
endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册