未验证 提交 55509ae7 编写于 作者: Y YUNSHEN XIE 提交者: GitHub

add defaults value for disable_ut (#38110)

上级 10ebe231
...@@ -605,7 +605,7 @@ EOF ...@@ -605,7 +605,7 @@ EOF
tmpfile=$tmp_dir/$tmpfile_rand tmpfile=$tmp_dir/$tmpfile_rand
set +ex set +ex
ut_startTime_s=`date +%s` 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 if [ ${NIGHTLY_MODE:-OFF} == "ON" ]; then
nightly_label="(NIGHTLY_LABEL)" nightly_label="(NIGHTLY_LABEL)"
else else
...@@ -1080,7 +1080,7 @@ function get_quickly_disable_ut() { ...@@ -1080,7 +1080,7 @@ function get_quickly_disable_ut() {
echo ${disable_ut_quickly} echo ${disable_ut_quickly}
echo "=========================================" echo "========================================="
else else
disable_ut_quickly='' disable_ut_quickly='disable_ut'
fi fi
} }
...@@ -1229,7 +1229,7 @@ set +x ...@@ -1229,7 +1229,7 @@ set +x
is_exclusive='' # indicate whether the case is exclusive type is_exclusive='' # indicate whether the case is exclusive type
is_multicard='' # indicate whether the case is multiple GPUs type is_multicard='' # indicate whether the case is multiple GPUs type
is_nightly='' # indicate whether the case will only run at night 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 ctest -N | awk -F ': ' '{print $2}' | sed '/^$/d' | sed '$d' > all_ut_list
output=$(python ${PADDLE_ROOT}/tools/parallel_UT_rule.py) output=$(python ${PADDLE_ROOT}/tools/parallel_UT_rule.py)
...@@ -1719,7 +1719,7 @@ EOF ...@@ -1719,7 +1719,7 @@ EOF
set +x set +x
ut_startTime_s=`date +%s` ut_startTime_s=`date +%s`
test_cases=$(ctest -N -V | grep "_xpu" ) # cases list which would be run exclusively 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 while read -r line; do
if [[ "$line" == "" ]]; then if [[ "$line" == "" ]]; then
continue continue
...@@ -1753,7 +1753,7 @@ EOF ...@@ -1753,7 +1753,7 @@ EOF
set +x set +x
ut_startTime_s=`date +%s` ut_startTime_s=`date +%s`
test_cases=$(ctest -N -V) # get all test cases 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 while read -r line; do
if [[ "$line" == "" ]]; then if [[ "$line" == "" ]]; then
continue continue
...@@ -1814,7 +1814,7 @@ EOF ...@@ -1814,7 +1814,7 @@ EOF
set +x set +x
test_cases=$(ctest -N -V) # get all test cases 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 while read -r line; do
if [[ "$line" == "" ]]; then if [[ "$line" == "" ]]; then
continue continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册