From 3e2bc8715fdd8b3a3caef6ec1a08d09210aed68e Mon Sep 17 00:00:00 2001 From: hutuxian Date: Wed, 29 Apr 2020 00:18:43 +0800 Subject: [PATCH] Try to fix UT Random Fail (#24223) --- paddle/fluid/framework/CMakeLists.txt | 2 +- paddle/scripts/paddle_build.sh | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/paddle/fluid/framework/CMakeLists.txt b/paddle/fluid/framework/CMakeLists.txt index d6cce25401..361f25d09e 100644 --- a/paddle/fluid/framework/CMakeLists.txt +++ b/paddle/fluid/framework/CMakeLists.txt @@ -157,7 +157,7 @@ if(WITH_PYTHON) #Generate an empty \ #__init__.py to make framework_py_proto as a valid python module. add_custom_target(framework_py_proto_init ALL COMMAND ${CMAKE_COMMAND} -E touch __init__.py) - add_dependencies(framework_py_proto framework_py_proto_init) + add_dependencies(framework_py_proto framework_py_proto_init trainer_py_proto) if (NOT WIN32) add_custom_command(TARGET framework_py_proto POST_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory ${PADDLE_BINARY_DIR}/python/paddle/fluid/proto diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 0c09ba8872..c5be5bc142 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -799,8 +799,6 @@ set +x testcase='' done <<< "$test_cases"; - echo "For UT Random Fail, will delete soon" - find / -name "proto" -type d | xargs ls card_test "$single_card_tests" 1 # run cases with single GPU card_test "$multiple_card_tests" 2 # run cases with two GPUs card_test "$exclusive_tests" # run cases exclusively, in this cases would be run with 4/8 GPUs -- GitLab