From 55509ae75323fb1afca55c78edcf68b4f9aab3b5 Mon Sep 17 00:00:00 2001 From: YUNSHEN XIE <1084314248@qq.com> Date: Thu, 16 Dec 2021 14:40:01 +0800 Subject: [PATCH] add defaults value for disable_ut (#38110) --- paddle/scripts/paddle_build.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index df647a17386..48449e358bb 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -605,7 +605,7 @@ EOF tmpfile=$tmp_dir/$tmpfile_rand set +ex ut_startTime_s=`date +%s` - get_quickly_disable_ut||disable_ut_quickly='' # indicate whether the case was in quickly disable list + get_quickly_disable_ut||disable_ut_quickly='disable_ut' # indicate whether the case was in quickly disable list if [ ${NIGHTLY_MODE:-OFF} == "ON" ]; then nightly_label="(NIGHTLY_LABEL)" else @@ -1080,7 +1080,7 @@ function get_quickly_disable_ut() { echo ${disable_ut_quickly} echo "=========================================" else - disable_ut_quickly='' + disable_ut_quickly='disable_ut' fi } @@ -1229,7 +1229,7 @@ set +x is_exclusive='' # indicate whether the case is exclusive type is_multicard='' # indicate whether the case is multiple GPUs type is_nightly='' # indicate whether the case will only run at night - get_quickly_disable_ut||disable_ut_quickly='' # indicate whether the case was in quickly disable list + get_quickly_disable_ut||disable_ut_quickly='disable_ut' # indicate whether the case was in quickly disable list ctest -N | awk -F ': ' '{print $2}' | sed '/^$/d' | sed '$d' > all_ut_list output=$(python ${PADDLE_ROOT}/tools/parallel_UT_rule.py) @@ -1719,7 +1719,7 @@ EOF set +x ut_startTime_s=`date +%s` test_cases=$(ctest -N -V | grep "_xpu" ) # cases list which would be run exclusively - get_quickly_disable_ut||disable_ut_quickly='' # indicate whether the case was in quickly disable list + get_quickly_disable_ut||disable_ut_quickly='disable_ut' # indicate whether the case was in quickly disable list while read -r line; do if [[ "$line" == "" ]]; then continue @@ -1753,7 +1753,7 @@ EOF set +x ut_startTime_s=`date +%s` test_cases=$(ctest -N -V) # get all test cases - get_quickly_disable_ut||disable_ut_quickly='' # indicate whether the case was in quickly disable list + get_quickly_disable_ut||disable_ut_quickly='disable_ut' # indicate whether the case was in quickly disable list while read -r line; do if [[ "$line" == "" ]]; then continue @@ -1814,7 +1814,7 @@ EOF set +x test_cases=$(ctest -N -V) # get all test cases - get_quickly_disable_ut||disable_ut_quickly='' # indicate whether the case was in quickly disable list + get_quickly_disable_ut||disable_ut_quickly='disable_ut' # indicate whether the case was in quickly disable list while read -r line; do if [[ "$line" == "" ]]; then continue -- GitLab