From ac72f974befeb586d897311c4cf07f67fc6565cc Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Sun, 26 Sep 2021 11:10:31 +0800 Subject: [PATCH] Fix model_benchmark CI (#36047) --- tools/test_ci_model_benchmark.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/test_ci_model_benchmark.sh b/tools/test_ci_model_benchmark.sh index ba4c1f6b7f..fb842fbcd7 100644 --- a/tools/test_ci_model_benchmark.sh +++ b/tools/test_ci_model_benchmark.sh @@ -26,14 +26,14 @@ function check_whl { 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 - [ $? -ne 0 ] && echo "install paddle failed." && exit 1 rm -rf ${PADDLE_ROOT}/build/Makefile ${PADDLE_ROOT}/build/CMakeCache.txt cmake_change=`git diff --name-only upstream/$BRANCH | grep "cmake/external" || true` if [ ${cmake_change} ];then rm -rf ${PADDLE_ROOT}/build/third_party fi + git checkout . + git checkout -b develop_base_pr upstream/$BRANCH + [ $? -ne 0 ] && echo "checkout paddle branch failed." && exit 1 bash -x paddle/scripts/paddle_build.sh build_only [ $? -ne 0 ] && echo "build paddle failed." && exit 1 -- GitLab