diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 962ee53a1069b8cd7863a0f1dca616c939eb237d..5d95443f2ab76d2af1e167af59d8bde4ab2ec26f 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -529,13 +529,16 @@ EOF pip3.7 install --user ${INSTALL_PREFIX:-/paddle/build}/opt/paddle/share/wheels/*.whl fi ut_startTime_s=`date +%s` - ctest --output-on-failure -j $2 + ctest --output-on-failure -j $2;mactest_error=$? ut_endTime_s=`date +%s` echo "Mac testCase Time: $[ $ut_endTime_s - $ut_startTime_s ]s" paddle version # Recovery proxy to avoid failure in later steps export http_proxy=$my_proxy export https_proxy=$my_proxy + if [ "$mactest_error" != 0 ];then + exit 8; + fi fi }