提交 d53fa53b 编写于 作者: H Hao Wang 提交者: Dong Daxiang

CI - Improve example code check (#19170)


* add exception exit on error example codes test=develop
上级 b837689e
...@@ -1006,7 +1006,7 @@ function example() { ...@@ -1006,7 +1006,7 @@ function example() {
pip install /paddle/build/python/dist/*.whl pip install /paddle/build/python/dist/*.whl
paddle version paddle version
cd ${PADDLE_ROOT}/python/paddle/fluid cd ${PADDLE_ROOT}/python/paddle/fluid
python sampcd_processor.py python sampcd_processor.py cpu
if [ "$?" != "0" ];then if [ "$?" != "0" ];then
echo "Code instance execution failed" echo "Code instance execution failed"
exit 1 exit 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册