From 3382f395ed978383c6332a379b2c939a4d35dc89 Mon Sep 17 00:00:00 2001 From: zhangchunle Date: Mon, 20 Jul 2020 10:49:27 +0800 Subject: [PATCH] example EXcode (#25578) --- paddle/scripts/paddle_build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 1f7baf135d6..a2e590ac556 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -1283,10 +1283,10 @@ function example() { pip install ${PADDLE_ROOT}/build/python/dist/*.whl paddle version cd ${PADDLE_ROOT}/tools - python sampcd_processor.py cpu - if [ "$?" != "0" ];then + python sampcd_processor.py cpu;example_error=$? + if [ "$example_error" != "0" ];then echo "Code instance execution failed" - exit 1 + exit 5 fi } -- GitLab