From f0661a1d3dd2ac22e652b075279d427a66cb885e Mon Sep 17 00:00:00 2001 From: Qi Li Date: Tue, 14 Sep 2021 13:43:44 +0800 Subject: [PATCH] [NPU] fix npu pr, test=develop (#35709) * [NPU] fix npu pr --- paddle/scripts/paddle_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index edd9079b188..a98cb00153c 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -1756,7 +1756,7 @@ function parallel_test_base_npu() { npu_cc_changes=$(git diff --name-only remotes/upstream/$BRANCH | grep "op_npu.cc" || true) npu_py_changes=$(git diff --name-only remotes/upstream/$BRANCH | grep "op_npu.py" || true) # get PR name - npu_pr_tile=$(curl https://github.com/PaddlePaddle/Paddle/pull/${GIT_PR_ID} 2>/dev/null | grep "" | grep "[NPU]" || true) + npu_pr_tile=$(curl https://github.com/PaddlePaddle/Paddle/pull/${GIT_PR_ID} 2>/dev/null | grep "<title>" | grep "NPU" || true) if [ -z "${npu_cc_changes}" ] && [ -z "${npu_py_changes}" ] && [ -z "${npu_pr_tile}" ]; then echo "NO NPU operators files changed and no '[NPU]' found in PR title, skip NPU unit tests!" exit 0 -- GitLab