From a5f556f083b270ebbe7063ff39846cb7faa4ca47 Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Sun, 23 Oct 2022 20:22:17 +0800 Subject: [PATCH] [CodeStyle][black] restore changes of PR-CI-Coverage in #46014 (#47266) --- paddle/scripts/paddle_build.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 1e7a2b6f2e7..19598e4896a 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -478,12 +478,10 @@ EOF } function cmake_gen_and_build() { - # startTime_s=`date +%s` - startTime_s=100 + startTime_s=`date +%s` cmake_gen $1 build $2 - # endTime_s=`date +%s` - endTime_s=200 + endTime_s=`date +%s` [ -n "$startTime_firstBuild" ] && startTime_s=$startTime_firstBuild 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 @@ -1152,8 +1150,7 @@ EOF 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_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='tools/test_sampcd_processor.py,tools/timeline.py' + diff_py_file=$(git diff --name-status test develop | grep '\.py$' | awk '$1 != "D" {printf "%s,",$2}') export PADDLE_GIT_DIFF_H_FILE=${diff_h_file%*,} export PADDLE_GIT_DIFF_CC_FILE=${diff_cc_file%*,} export PADDLE_GIT_DIFF_PY_FILE=${diff_py_file%*,} -- GitLab