From c7c88ac93cc46d394880fd8f7606e912bc82da4f Mon Sep 17 00:00:00 2001 From: chalsliu Date: Wed, 16 Sep 2020 16:46:44 +0800 Subject: [PATCH] Set ut timeout value --- cmake/generic.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/generic.cmake b/cmake/generic.cmake index b0a6dfe290..bf228b3d91 100644 --- a/cmake/generic.cmake +++ b/cmake/generic.cmake @@ -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() -- GitLab