diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 016188057ad3c36c9b011d8913574ef5736882a4..711d6564cfa6355a93b734e4fcaeb566b70fbb5a 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -522,9 +522,11 @@ function run_mac_test() { EOF #remove proxy here to fix dist ut 'test_fl_listen_and_serv_op' error on mac. #see details: https://github.com/PaddlePaddle/Paddle/issues/24738 + set +x my_proxy=$http_proxy export http_proxy= export https_proxy= + set -x set +ex if [ "$1" == "cp27-cp27m" ]; then @@ -601,8 +603,10 @@ EOF echo "Mac testCase Time: $[ $ut_endTime_s - $ut_startTime_s ]s" paddle version # Recovery proxy to avoid failure in later steps + set +x export http_proxy=$my_proxy export https_proxy=$my_proxy + set -x if [ "$mactest_error" != 0 ];then if [[ "$failed_test_lists" == "" ]]; then echo "========================================"