From 1835b72cac0a3d26d73dde86f5ac78808168e62c Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Wed, 30 Jun 2021 11:02:13 +0800 Subject: [PATCH] fix cpu/gpu check approve (#33806) * fix cpu/gpu check approve * test=coverage;test=notest * test=coverage;test=notest * del --- paddle/scripts/paddle_build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 8e81e4f355..e6d952fbe7 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -605,8 +605,10 @@ EOF if [ $need_retry_ut_count -lt $exec_retry_threshold ];then while ( [ $exec_times -lt $retry_time ] ) do + set +e retry_unittests_record="$retry_unittests_record$failed_test_lists" failed_test_lists_ult=`echo "${failed_test_lists}"` + set -e if [[ "${exec_times}" == "1" ]];then if [[ "${failed_test_lists}" == "" ]];then break @@ -2150,6 +2152,7 @@ function main() { enable_unused_var_check ;; gpu_cicheck_coverage) + check_approvals_of_unittest 1 parallel_test check_coverage check_change_of_unittest ${PYTHON_ABI:-""} -- GitLab