From e32f4c54234b6c1a98224b038b5c69a1922bcd71 Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Mon, 26 Nov 2018 18:20:55 +0800 Subject: [PATCH] fix test=develop --- paddle/scripts/paddle_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 0ab197a5275..29565fef022 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -469,8 +469,8 @@ function assert_api_spec_approvals() { BRANCH="develop" fi - API_FILES=('paddle/fluid/API.spec' 'paddle/fluid/framework/operator.h') - for API_FILE in ${API_FILES}; do + API_FILES=("paddle/fluid/API.spec" "paddle/fluid/framework/operator.h") + for API_FILE in ${API_FILES[*]}; do API_CHANGE=`git diff --name-only upstream/$BRANCH | grep "${API_FILE}" || true` echo "checking ${API_FILE} change, PR: ${GIT_PR_ID}, changes: ${API_CHANGE}" if [ ${API_CHANGE} ] && [ "${GIT_PR_ID}" != "" ]; then -- GitLab