From fbb5404652e3cc4f7ba7fc0a6e92a3539243566d Mon Sep 17 00:00:00 2001 From: chengduo Date: Wed, 20 Feb 2019 08:52:47 -0600 Subject: [PATCH] fix test_parallel_executor_seresnex timeout (#15812) test=develop --- python/paddle/fluid/tests/unittests/CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/CMakeLists.txt b/python/paddle/fluid/tests/unittests/CMakeLists.txt index 289a48aac9..a1cf5fad13 100644 --- a/python/paddle/fluid/tests/unittests/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/CMakeLists.txt @@ -113,12 +113,11 @@ py_test_modules(test_ir_memory_optimize_transformer MODULES test_ir_memory_optim endif() if(NOT APPLE) py_test_modules(test_image_classification_resnet MODULES test_image_classification_resnet SERIAL) - if(CMAKE_BUILD_TYPE STREQUAL "Debug") - # change the timeout from 600 to 1200, because in debug mode, this test need more time. - set_tests_properties(test_image_classification_resnet PROPERTIES TIMEOUT 1200) - endif() endif() - +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + # change the timeout from 600 to 1200, because in debug mode, this test need more time. + set_tests_properties(test_parallel_executor_seresnext PROPERTIES TIMEOUT 1200) +endif() if (WITH_NGRAPH) add_subdirectory(ngraph) -- GitLab