未验证 提交 bb5e99a4 编写于 作者: R risemeup1 提交者: GitHub

Optimizing pr ci coverage (#46427)

* it is a test for my idea,test=coverage

* it is a test,test=coverage

* it is a test,test=coverage

* optimizing coverage ci for build develop twice

* it is a test to delete a unnitest,test=coverage

* optimizing pr ci coverage
上级 a038747c
......@@ -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
}
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册