File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2467,8 +2467,19 @@ set +x
24672467 testcase=' '
24682468 done <<< " $test_cases" ;
24692469 card_test " $single_card_tests " 1
2470- collect_failed_tests
24712470set -x
2471+ for file in ` ls $tmp_dir ` ; do
2472+ exit_code=0
2473+ grep -q ' The following tests FAILED:' $tmp_dir /$file || exit_code=$?
2474+ if [ $exit_code -ne 0 ]; then
2475+ failuretest=' '
2476+ else
2477+ failuretest=` grep -A 10000 ' The following tests FAILED:' $tmp_dir /$file | sed ' s/The following tests FAILED://g' | sed ' /^$/d' `
2478+ failed_test_lists=" ${failed_test_lists}
2479+ ${failuretest} "
2480+ break
2481+ fi
2482+ done
24722483 ut_endTime_s=` date +%s`
24732484 echo " CINN testCase Time: $[ $ut_endTime_s - $ut_startTime_s ]s"
24742485 if [[ " $EXIT_CODE " != " 0" ]]; then
@@ -2518,8 +2529,9 @@ set +x
25182529 testcase=' '
25192530 done <<< " $test_cases" ;
25202531 card_test " $eight_cards_tests " -1 1
2521- collect_failed_tests
2532+
25222533set -x
2534+
25232535 ut_endTime_s=` date +%s`
25242536 echo " HYBRID testCase Time: $[ $ut_endTime_s - $ut_startTime_s ]s"
25252537 if [[ " $EXIT_CODE " != " 0" ]]; then
@@ -4141,6 +4153,9 @@ function main() {
41414153 init
41424154 case $CMD in
41434155 build_only)
4156+ if [ " $WITH_CINN " == " ON" ]; then
4157+ export PADDLE_CUDA_INSTALL_REQUIREMENTS=ON
4158+ fi
41444159 run_setup ${PYTHON_ABI:- " " } bdist_wheel ${parallel_number}
41454160 ;;
41464161 build_pr_dev)
You can’t perform that action at this time.
0 commit comments