From 8083944be0f2e610bb4170247522709a8e9f1ed3 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Thu, 29 May 2025 21:54:11 +0000 Subject: [PATCH] [CI] Do not fail with no JUnit XML Currently we will fail if there are no JUnit XML files produced from llvm-lit invocations. This can happen if the build fails and no test suites end up getting run or if we test a project that does not use llvm-lit, libe libc. This fixes #142038. --- .ci/monolithic-linux.sh | 2 +- .ci/monolithic-windows.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/monolithic-linux.sh b/.ci/monolithic-linux.sh index 5d0fbf5d0a26..a0ce8f3b80f1 100755 --- a/.ci/monolithic-linux.sh +++ b/.ci/monolithic-linux.sh @@ -38,7 +38,7 @@ function at-exit { ccache --print-stats > artifacts/ccache_stats.txt cp "${BUILD_DIR}"/.ninja_log artifacts/.ninja_log - cp "${BUILD_DIR}"/test-results.*.xml artifacts/ + cp "${BUILD_DIR}"/test-results.*.xml artifacts/ || : # If building fails there will be no results files. shopt -s nullglob diff --git a/.ci/monolithic-windows.sh b/.ci/monolithic-windows.sh index dc9667718946..8dc49aa15819 100755 --- a/.ci/monolithic-windows.sh +++ b/.ci/monolithic-windows.sh @@ -33,7 +33,7 @@ function at-exit { mkdir -p artifacts sccache --show-stats >> artifacts/sccache_stats.txt cp "${BUILD_DIR}"/.ninja_log artifacts/.ninja_log - cp "${BUILD_DIR}"/test-results.*.xml artifacts/ + cp "${BUILD_DIR}"/test-results.*.xml artifacts/ || : # If building fails there will be no results files. shopt -s nullglob