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

* exec ut no more than 15s 2

* fix for ut test_inplace_addto_strategy timeout
TCChenlong-patch-1
YUNSHEN XIE 4 years ago committed by GitHub
parent ba0756325a
commit 72c78e4dbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -386,9 +386,9 @@ 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 150) set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 20)
else() else()
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 120) set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 15)
endif() endif()
endif() endif()
endfunction() endfunction()
@ -758,10 +758,10 @@ function(py_test TARGET_NAME)
endif() endif()
if (APPLE OR WIN32) if (APPLE OR WIN32)
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 150) set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 20)
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 15)
endif() endif()
endif() endif()

@ -215,7 +215,7 @@ function(py_test_modules TARGET_NAME)
set_property(TEST ${TARGET_NAME} PROPERTY RUN_SERIAL 1) set_property(TEST ${TARGET_NAME} PROPERTY RUN_SERIAL 1)
endif() endif()
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 350) set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 15)
endif() endif()
endfunction() endfunction()
@ -776,3 +776,4 @@ endif()
if(WITH_GPU) if(WITH_GPU)
set_tests_properties(test_imperative_auto_mixed_precision PROPERTIES TIMEOUT 120) set_tests_properties(test_imperative_auto_mixed_precision PROPERTIES TIMEOUT 120)
endif() endif()
set_tests_properties(test_inplace_addto_strategy PROPERTIES TIMEOUT 120)

Loading…
Cancel
Save