This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new c9486f07f10 branch-4.0: [chore](cloud) Run all test binaries even if 
some report failure #56839 (#56844)
c9486f07f10 is described below

commit c9486f07f100e6a385341f06929341bd0e3e5c9c
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Oct 11 18:20:28 2025 +0800

    branch-4.0: [chore](cloud) Run all test binaries even if some report 
failure #56839 (#56844)
    
    Cherry-picked from #56839
    
    Co-authored-by: Gavin Chou <[email protected]>
---
 cloud/script/run_all_tests.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/cloud/script/run_all_tests.sh b/cloud/script/run_all_tests.sh
index d16c9d1a02e..8f9a2159644 100644
--- a/cloud/script/run_all_tests.sh
+++ b/cloud/script/run_all_tests.sh
@@ -130,6 +130,7 @@ function report_coverage() {
 
 export LSAN_OPTIONS=suppressions=./lsan_suppr.conf
 unittest_files=()
+ret=0
 for i in *_test; do
     [[ -e "${i}" ]] || break
     if [[ "${test}" != "" ]]; then
@@ -144,13 +145,16 @@ for i in *_test; do
             patchelf --set-rpath "$(pwd)" "${i}"
         fi
 
-        set -euo pipefail
         if [[ "${filter}" == "" ]]; then
             LLVM_PROFILE_FILE="./report/${i}.profraw" "./${i}" 
--gtest_print_time=true --gtest_output="xml:${i}.xml"
         else
             LLVM_PROFILE_FILE="./report/${i}.profraw" "./${i}" 
--gtest_print_time=true --gtest_output="xml:${i}.xml" --gtest_filter="${filter}"
         fi
-        set +euo pipefail
+        last_ret=$?
+        echo "${i} ret=${last_ret}"
+        if [[ ${ret} -eq 0 ]]; then
+            ret=${last_ret}
+        fi
         unittest_files[${#unittest_files[*]}]="${i}"
         echo "--------------------------"
     fi
@@ -160,4 +164,5 @@ if [[ "_${ENABLE_CLANG_COVERAGE}" == "_ON" ]]; then
     report_coverage "${unittest_files[*]}"
 fi
 
+exit ${ret}
 # vim: et ts=4 sw=4:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to