Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
qili93 committed Sep 2, 2021
1 parent 233b2f1 commit 940cedc
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1703,13 +1703,11 @@ set -x

function parallel_test_base_npu() {
# skipping if no NPU related files changed
if [ ${SKIL_NPU_TEST:-ON} == "ON" ] ; then
git remote -vv
git branch -vv
git diff --name-only $BRANCH
git diff --name-only upstream/$BRANCH
npu_cc_changes=$(git diff --name-only upstream/$BRANCH | grep "op_npu.cc" || true)
npu_py_changes=$(git diff --name-only upstream/$BRANCH | grep "op_npu.py" || true)
if [ ${SKIP_NPU_TEST:-ON} == "ON" ] ; then
fetch_upstream_develop_if_not_exist
git diff --name-only remotes/upstream/$BRANCH
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)
if [ -z "${npu_cc_changes}" ] && [ -z "${npu_py_changes}" ] ; then
echo "NO NPU operators files changed, skip NPU unit tests!"
exit 0
Expand Down

1 comment on commit 940cedc

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.