From 846be131d579e2c094cd6c581247ab375dbdcbf8 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Mon, 26 Jul 2021 21:37:50 +0800 Subject: [PATCH] fix reused variable in check_file_diff_approvals (#34387) --- tools/check_file_diff_approvals.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/check_file_diff_approvals.sh b/tools/check_file_diff_approvals.sh index aededc23bcc..e85ecf54c46 100644 --- a/tools/check_file_diff_approvals.sh +++ b/tools/check_file_diff_approvals.sh @@ -265,6 +265,7 @@ fi OP_FILE_CHANGED=`git diff --name-only --diff-filter=AMR upstream/$BRANCH |grep -oE ".+_op..*" || true` if [ "${OP_FILE_CHANGED}" != "" ] && [ "${GIT_PR_ID}" != "" ]; then + ERROR_LINES="" for OP_FILE in ${OP_FILE_CHANGED}; do CHECK_OBJECT_FLAGS=`git diff -U0 upstream/$BRANCH ${PADDLE_ROOT}/${OP_FILE} |grep "+" |grep -E "ShareDataWith[(]|ShareBufferWith[(]" || true` @@ -295,6 +296,7 @@ fi UNITTEST_FILE_CHANGED=`git diff --name-only --diff-filter=AM upstream/$BRANCH |grep -E "test_.*.\.py" || true` if [ "${UNITTEST_FILE_CHANGED}" != "" ] && [ "${GIT_PR_ID}" != "" ]; then + ERROR_LINES="" for TEST_FILE in ${UNITTEST_FILE_CHANGED}; do HAS_SKIP_CHECK_GRAD_CI=`git diff -U0 upstream/$BRANCH ${PADDLE_ROOT}/${TEST_FILE} |grep "@skip_check_grad_ci" || true` -- GitLab