未验证 提交 a5f556f0 编写于 作者: N Nyakku Shigure 提交者: GitHub

[CodeStyle][black] restore changes of PR-CI-Coverage in #46014 (#47266)

上级 7097630f
...@@ -478,12 +478,10 @@ EOF ...@@ -478,12 +478,10 @@ EOF
} }
function cmake_gen_and_build() { function cmake_gen_and_build() {
# startTime_s=`date +%s` startTime_s=`date +%s`
startTime_s=100
cmake_gen $1 cmake_gen $1
build $2 build $2
# endTime_s=`date +%s` endTime_s=`date +%s`
endTime_s=200
[ -n "$startTime_firstBuild" ] && startTime_s=$startTime_firstBuild [ -n "$startTime_firstBuild" ] && startTime_s=$startTime_firstBuild
echo "Build Time: $[ $endTime_s - $startTime_s ]s" echo "Build Time: $[ $endTime_s - $startTime_s ]s"
echo "ipipe_log_param_Build_Time: $[ $endTime_s - $startTime_s ]s" >> ${PADDLE_ROOT}/build/build_summary.txt echo "ipipe_log_param_Build_Time: $[ $endTime_s - $startTime_s ]s" >> ${PADDLE_ROOT}/build/build_summary.txt
...@@ -1152,8 +1150,7 @@ EOF ...@@ -1152,8 +1150,7 @@ EOF
function check_diff_file_for_coverage() { function check_diff_file_for_coverage() {
diff_h_file=$(git diff --name-status test develop | awk '$1 != "D" {print $2}' | grep '\.h$' | awk -F "/" '{printf "%s,",$NF}') diff_h_file=$(git diff --name-status test develop | awk '$1 != "D" {print $2}' | grep '\.h$' | awk -F "/" '{printf "%s,",$NF}')
diff_cc_file=$(git diff --name-status test develop | awk '$1 != "D" {print $2}' | grep -E '\.(cc|c)$' | awk -F "/" '{printf "%s,",$NF}') diff_cc_file=$(git diff --name-status test develop | awk '$1 != "D" {print $2}' | grep -E '\.(cc|c)$' | awk -F "/" '{printf "%s,",$NF}')
# diff_py_file=$(git diff --name-status test develop | grep '\.py$' | awk '$1 != "D" {printf "%s,",$2}') diff_py_file=$(git diff --name-status test develop | grep '\.py$' | awk '$1 != "D" {printf "%s,",$2}')
diff_py_file='tools/test_sampcd_processor.py,tools/timeline.py'
export PADDLE_GIT_DIFF_H_FILE=${diff_h_file%*,} export PADDLE_GIT_DIFF_H_FILE=${diff_h_file%*,}
export PADDLE_GIT_DIFF_CC_FILE=${diff_cc_file%*,} export PADDLE_GIT_DIFF_CC_FILE=${diff_cc_file%*,}
export PADDLE_GIT_DIFF_PY_FILE=${diff_py_file%*,} export PADDLE_GIT_DIFF_PY_FILE=${diff_py_file%*,}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册