未验证 提交 87bc6f2c 编写于 作者: T tianshuo78520a 提交者: GitHub

Fix Mac Timeout Test (#56259)

* Fix Mac Timeout Test

* fix test

* fix

* Fix test

* Tesst

* Fix mac test
上级 0f611f18
...@@ -687,14 +687,18 @@ EOF ...@@ -687,14 +687,18 @@ EOF
fi fi
bash $PADDLE_ROOT/tools/check_added_ut.sh bash $PADDLE_ROOT/tools/check_added_ut.sh
check_approvals_of_unittest 2 check_approvals_of_unittest 2
# serial_list: Some single tests need to reduce concurrency
single_list="^test_cdist$|^test_resnet$|^test_resnet_v2$|^test_concat_op$|^test_transformer$|^test_bert_with_stride$|^test_paddle_save_load$"
get_precision_ut_mac get_precision_ut_mac
if [[ "$on_precision" == "0" ]];then if [[ "$on_precision" == "0" ]];then
ctest -E "($disable_ut_quickly)" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile ctest -E "($disable_ut_quickly|$single_list)" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile
ctest -R "${single_list}" -E "($disable_ut_quickly)" --output-on-failure -j 1 | tee $tmpfile
else else
ctest -R "($UT_list_prec)" -E "($disable_ut_quickly)" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile ctest -R "($UT_list_prec)" -E "($disable_ut_quickly)" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile
tmpfile_rand=`date +%s%N` tmpfile_rand=`date +%s%N`
tmpfile=$tmp_dir/$tmpfile_rand tmpfile=$tmp_dir/$tmpfile_rand
ctest -R "($UT_list_prec_1)" -E "($disable_ut_quickly)" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile ctest -R "($UT_list_prec_1)" -E "(${disable_ut_quickly}|${single_list})" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile
ctest -R "($single_list)" -E "(${disable_ut_quickly})" --output-on-failure -j 1 | tee $tmpfile
fi fi
failed_test_lists='' failed_test_lists=''
collect_failed_tests collect_failed_tests
...@@ -930,7 +934,6 @@ set -ex ...@@ -930,7 +934,6 @@ set -ex
function get_precision_ut_mac() { function get_precision_ut_mac() {
on_precision=0 on_precision=0
serial_list="test_resnet|test_resnet_v2|test_concat_op|test_paddle_save_load"
UT_list=$(ctest -N | awk -F ': ' '{print $2}' | sed '/^$/d' | sed '$d') UT_list=$(ctest -N | awk -F ': ' '{print $2}' | sed '/^$/d' | sed '$d')
precision_cases="" precision_cases=""
if [ ${PRECISION_TEST:-OFF} == "ON" ]; then if [ ${PRECISION_TEST:-OFF} == "ON" ]; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册