Skip to content

Commit 9882c78

Browse files
committed
Don't fail if there are no results files, just don't report anything.
1 parent d09eb9c commit 9882c78

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.ci/monolithic-linux.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ if [[ -n "${CLEAR_CACHE:-}" ]]; then
2929
fi
3030

3131
function at-exit {
32-
python3 "${MONOREPO_ROOT}"/.ci/generate_test_report.py ":linux: Linux x64 Test Results" \
33-
"linux-x64-test-results" "${BUILD_DIR}"/test-results.*.xml
34-
3532
mkdir -p artifacts
3633
ccache --print-stats > artifacts/ccache_stats.txt
34+
35+
# If building fails there will be no results files.
36+
shopt -s nullglob
37+
python3 "${MONOREPO_ROOT}"/.ci/generate_test_report.py ":linux: Linux x64 Test Results" \
38+
"linux-x64-test-results" "${BUILD_DIR}"/test-results.*.xml
3739
}
3840
trap at-exit EXIT
3941

.ci/monolithic-windows.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ fi
2828

2929
sccache --zero-stats
3030
function at-exit {
31-
python "${MONOREPO_ROOT}"/.ci/generate_test_report.py ":windows: Windows x64 Test Results" \
32-
"windows-x64-test-results" "${BUILD_DIR}"/test-results.*.xml
33-
3431
mkdir -p artifacts
3532
sccache --show-stats >> artifacts/sccache_stats.txt
33+
34+
# If building fails there will be no results files.
35+
shopt -s nullglob
36+
python "${MONOREPO_ROOT}"/.ci/generate_test_report.py ":windows: Windows x64 Test Results" \
37+
"windows-x64-test-results" "${BUILD_DIR}"/test-results.*.xml
3638
}
3739
trap at-exit EXIT
3840

0 commit comments

Comments
 (0)