From 65aeb8df0027f9f0c18193f287950ef9a91a930c Mon Sep 17 00:00:00 2001 From: Dongyang Li Date: Fri, 24 Jan 2025 10:51:31 +0800 Subject: [PATCH] [fix](ut) prefer to use LLVM_PROFDATA from env.sh (#47351) --- cloud/script/run_all_tests.sh | 4 ++-- regression-test/pipeline/common/github-utils.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cloud/script/run_all_tests.sh b/cloud/script/run_all_tests.sh index 330fb00449350b..f2b5f4dd9b0b06 100644 --- a/cloud/script/run_all_tests.sh +++ b/cloud/script/run_all_tests.sh @@ -120,8 +120,8 @@ function report_coverage() { for object in ${binary_objects[@]}; do binary_objects_options[${#binary_objects_options[*]}]="-object ${object}" done - llvm-profdata merge -o ${profdata} ${profraw} - llvm-cov show -output-dir=report -format=html \ + ${LLVM_PROFDATA:-llvm-profdata} merge -o ${profdata} ${profraw} + ${LLVM_COV:-llvm-cov} show -output-dir=report -format=html \ -ignore-filename-regex='(.*gensrc/.*)|(.*_test\.cpp$)' \ -instr-profile=${profdata} \ ${binary_objects_options[*]} diff --git a/regression-test/pipeline/common/github-utils.sh b/regression-test/pipeline/common/github-utils.sh index 6e2321540726fe..361eecd394cbeb 100644 --- a/regression-test/pipeline/common/github-utils.sh +++ b/regression-test/pipeline/common/github-utils.sh @@ -283,6 +283,7 @@ file_changed_cloud_ut() { if [[ -z ${all_files} ]]; then echo "return need" && return 0; fi for af in ${all_files}; do if [[ "${af}" == 'cloud/src/'* ]] || + [[ "${af}" == 'cloud/script/'* ]] || [[ "${af}" == 'gensrc'* ]] || [[ "${af}" == 'common/cpp'* ]] || [[ "${af}" == 'cloud/test/'* ]]; then