From 9d33830fff89832e90d257b288e57386be781691 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Thu, 1 Jul 2021 10:54:33 +0800 Subject: [PATCH] fix failed_test_lists none --- paddle/scripts/paddle_build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index e6d952fbe7ef6a..309db1c6ee8c55 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -1224,8 +1224,10 @@ set +x 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}" |grep -Po '[^ ].*$'` + set -e if [[ "${exec_times}" == "1" ]];then if [[ "${failed_test_lists}" == "" ]];then break