diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 271cdd23100d0669d045b9190da127045189475a..b39a8945eb7135af1a5ee2ab0a3d1d7166db3358 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -1154,10 +1154,6 @@ function check_diff_file_for_coverage() { function check_change_of_unittest() { generate_unittest_spec "PR" - fetch_upstream_develop_if_not_exist - git reset --hard upstream/$BRANCH - cmake_gen $1 - generate_unittest_spec "DEV" check_approvals_of_unittest 2 } diff --git a/tools/check_added_ut.sh b/tools/check_added_ut.sh index d59230b1c1fe0a0bd41fcfb2fcb33809c4bcabac..76f5e294d13c1f41c89eed33387f8bbc626640b1 100644 --- a/tools/check_added_ut.sh +++ b/tools/check_added_ut.sh @@ -53,6 +53,9 @@ elif [[ "$SYSTEM" == "Windows_NT" ]];then fi # remove line ended with .exe to get correct deleted_ut list ctest -N | awk -F ':' '{print $2}' | sed '/^$/d' | sed '$d' | sed 's/ //g' | sed '/\.exe$/d' | grep 'test' > $PADDLE_ROOT/br-ut +#UNITTEST_DEV.spec is used for checking changes of unnitests between pr and paddle_develop in the later step +spec_path=${PADDLE_ROOT}/paddle/fluid/UNITTEST_DEV.spec +ctest -N | awk -F ':' '{print $2}' | sed '/^$/d' | sed '$d' > ${spec_path} cd $PADDLE_ROOT/build ctest -N | awk -F ':' '{print $2}' | sed '/^$/d' | sed '$d' | sed 's/ //g' | sed '/\.exe$/d' | grep 'test' > $PADDLE_ROOT/pr-ut cd $PADDLE_ROOT