From 42a6442a0800008c0d4fdcf70c3a922d4eb0512c Mon Sep 17 00:00:00 2001 From: YUNSHEN XIE <1084314248@qq.com> Date: Mon, 11 Jan 2021 15:48:09 +0800 Subject: [PATCH] disable ut test_tsm on windows (#30017) * disable ut test_tsm on windows * fix error * add ut execuate time --- python/paddle/fluid/tests/unittests/CMakeLists.txt | 4 ++-- .../fluid/tests/unittests/dygraph_to_static/CMakeLists.txt | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/CMakeLists.txt b/python/paddle/fluid/tests/unittests/CMakeLists.txt index 1800b6ffd8..884e363e2f 100644 --- a/python/paddle/fluid/tests/unittests/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/CMakeLists.txt @@ -655,8 +655,8 @@ endif() if (WITH_DISTRIBUTE) set_tests_properties(test_communicator_half_async PROPERTIES TIMEOUT 120) - set_tests_properties(test_dist_fleet_ctr2 PROPERTIES TIMEOUT 120) - set_tests_properties(test_dist_fleet_sparse_embedding_ctr PROPERTIES TIMEOUT 120) + set_tests_properties(test_dist_fleet_ctr2 PROPERTIES TIMEOUT 200) + set_tests_properties(test_dist_fleet_sparse_embedding_ctr PROPERTIES TIMEOUT 200) endif() if (WITH_DISTRIBUTE AND NOT APPLE) diff --git a/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt b/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt index 383ef29313..5bfdb97def 100644 --- a/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt @@ -1,12 +1,15 @@ file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py") string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") +if(WIN32) + LIST(REMOVE_ITEM TEST_OPS test_tsm) +endif() + foreach(TEST_OP ${TEST_OPS}) py_test_modules(${TEST_OP} MODULES ${TEST_OP}) endforeach(TEST_OP) set_tests_properties(test_se_resnet PROPERTIES TIMEOUT 900) -set_tests_properties(test_tsm PROPERTIES TIMEOUT 900) set_tests_properties(test_yolov3 PROPERTIES TIMEOUT 900 LABELS "RUN_TYPE=EXCLUSIVE") set_tests_properties(test_mobile_net PROPERTIES TIMEOUT 120) set_tests_properties(test_seq2seq PROPERTIES TIMEOUT 120) @@ -21,6 +24,7 @@ set_tests_properties(test_bmn PROPERTIES TIMEOUT 120) if(NOT WIN32) set_tests_properties(test_resnet_v2 PROPERTIES TIMEOUT 120) + set_tests_properties(test_tsm PROPERTIES TIMEOUT 900) #set_tests_properties(test_resnet PROPERTIES TIMEOUT 120) endif() #if(WIN32) -- GitLab