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

Fix test case timeout (#40820)

* Fix test case timeout

* test=document_fix

* test=document_fix
上级 814f7211
...@@ -774,12 +774,12 @@ set +x ...@@ -774,12 +774,12 @@ set +x
get_precision_ut_mac get_precision_ut_mac
ut_actual_total_startTime_s=`date +%s` ut_actual_total_startTime_s=`date +%s`
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" -LE ${nightly_label} --timeout 120 --output-on-failure -j $2 | 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} --timeout 120 --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" -LE ${nightly_label} --timeout 120 --output-on-failure -j $2 | tee $tmpfile
fi fi
ut_total_endTime_s=`date +%s` ut_total_endTime_s=`date +%s`
echo "TestCases Total Time: $[ $ut_total_endTime_s - $ut_actual_total_startTime_s ]s" echo "TestCases Total Time: $[ $ut_total_endTime_s - $ut_actual_total_startTime_s ]s"
...@@ -848,7 +848,7 @@ set +x ...@@ -848,7 +848,7 @@ set +x
fi fi
done done
failed_test_lists='' failed_test_lists=''
ctest -R "$retry_unittests_regular" --output-on-failure -j 2 | tee $tmpfile ctest -R "$retry_unittests_regular" --timeout 120 --output-on-failure -j 2 | tee $tmpfile
collect_failed_tests collect_failed_tests
rm -f $tmp_dir/* rm -f $tmp_dir/*
exec_times=$[$exec_times+1] exec_times=$[$exec_times+1]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册