Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2467,8 +2467,19 @@ set +x
testcase=''
done <<< "$test_cases";
card_test "$single_card_tests" 1
collect_failed_tests
set -x
for file in `ls $tmp_dir`; do
exit_code=0
grep -q 'The following tests FAILED:' $tmp_dir/$file||exit_code=$?
if [ $exit_code -ne 0 ]; then
failuretest=''
else
failuretest=`grep -A 10000 'The following tests FAILED:' $tmp_dir/$file | sed 's/The following tests FAILED://g'|sed '/^$/d'`
failed_test_lists="${failed_test_lists}
${failuretest}"
break
fi
done
ut_endTime_s=`date +%s`
echo "CINN testCase Time: $[ $ut_endTime_s - $ut_startTime_s ]s"
if [[ "$EXIT_CODE" != "0" ]]; then
Expand Down Expand Up @@ -2518,8 +2529,9 @@ set +x
testcase=''
done <<< "$test_cases";
card_test "$eight_cards_tests" -1 1
collect_failed_tests

set -x

ut_endTime_s=`date +%s`
echo "HYBRID testCase Time: $[ $ut_endTime_s - $ut_startTime_s ]s"
if [[ "$EXIT_CODE" != "0" ]]; then
Expand Down Expand Up @@ -4141,6 +4153,9 @@ function main() {
init
case $CMD in
build_only)
if [ "$WITH_CINN" == "ON" ];then
export PADDLE_CUDA_INSTALL_REQUIREMENTS=ON
fi
run_setup ${PYTHON_ABI:-""} bdist_wheel ${parallel_number}
;;
build_pr_dev)
Expand Down