diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 14607c0465307ebb75c939170a1cc9a4a59283aa..4efcec7a41ded9f76fedce534ff95224935cc01c 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -1267,9 +1267,13 @@ EOF ./run.sh ${PADDLE_ROOT} ${WITH_MKL:-ON} ${WITH_GPU:-OFF} ${INFERENCE_DEMO_INSTALL_DIR} \ ${TENSORRT_INCLUDE_DIR:-/usr/local/TensorRT/include} \ ${TENSORRT_LIB_DIR:-/usr/local/TensorRT/lib} + EXIT_CODE=$? fluid_endTime_s=`date +%s` echo "test_fluid_lib Total Time: $[ $fluid_endTime_s - $fluid_startTime_s ]s" ./clean.sh + if [[ "$EXIT_CODE" != "0" ]]; then + exit 8; + fi } function test_fluid_lib_train() { @@ -1281,9 +1285,13 @@ EOF fluid_train_startTime_s=`date +%s` cd ${PADDLE_ROOT}/paddle/fluid/train/demo ./run.sh ${PADDLE_ROOT} ${WITH_MKL:-ON} + EXIT_CODE=$? fluid_train_endTime_s=`date +%s` echo "test_fluid_lib_train Total Time: $[ $fluid_train_endTime_s - $fluid_train_startTime_s ]s" ./clean.sh + if [[ "$EXIT_CODE" != "0" ]]; then + exit 8; + fi } function build_document_preview() { @@ -1387,7 +1395,7 @@ function main() { test_inference) gen_fluid_lib ${parallel_number} test_fluid_lib - test_fluid_lib_train + #test_fluid_lib_train ;; test_train) gen_fluid_lib ${parallel_number}