diff --git a/tools/test_model_benchmark.sh b/tools/test_model_benchmark.sh index 8f8026b0adcef71a2155218f24384ae389cf02e7..ff7af4ac4d2df3cdd6d213b542b1e606d628228d 100644 --- a/tools/test_model_benchmark.sh +++ b/tools/test_model_benchmark.sh @@ -24,11 +24,13 @@ function check_whl { mkdir -p /tmp/pr && mkdir -p /tmp/develop unzip -q build/python/dist/*.whl -d /tmp/pr + rm -f build/python/dist/*.whl && rm -f build/python/build/.timestamp git checkout . git checkout -b develop_base_pr upstream/$BRANCH cd build make -j `nproc` + [ $? -ne 0 ] && echo "install paddle failed." && exit 1 unzip -q python/dist/*.whl -d /tmp/develop sed -i '/version.py/d' /tmp/pr/*/RECORD