aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-11-26 10:32:43 -0800
committerJunio C Hamano <gitster@pobox.com>2025-11-26 10:32:43 -0800
commit536d284f3b351c301181df9844a6abae65959c8a (patch)
tree4d560f5ee33b96147b36ead0d5a9f2567292706f /ci
parentd65eab5d303aa63cf8e6f9556d7f984eac43d3ec (diff)
parent17bd1108eac98d8977a24233a498143ffd577c31 (diff)
downloadgit-536d284f3b351c301181df9844a6abae65959c8a.tar.xz
Merge branch 'jk/ci-windows-meson-test-fix'
"Windows+meson" job at the GitHub Actions CI was hard to debug, as it did not show and save failed test artifacts, which has been corrected. * jk/ci-windows-meson-test-fix: ci(windows-meson-test): handle options and output like other test jobs unit-test: ignore --no-chain-lint
Diffstat (limited to 'ci')
-rwxr-xr-xci/run-test-slice-meson.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/ci/run-test-slice-meson.sh b/ci/run-test-slice-meson.sh
new file mode 100755
index 0000000000..961c94fba0
--- /dev/null
+++ b/ci/run-test-slice-meson.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# We must load the build options so we know where to find
+# things like TEST_OUTPUT_DIRECTORY. This has to come before
+# loading lib.sh, though, because it may clobber some CI lib
+# variables like our custom GIT_TEST_OPTS.
+. "$1"/GIT-BUILD-OPTIONS
+. ${0%/*}/lib.sh
+
+group "Run tests" \
+ meson test -C "$1" --no-rebuild --print-errorlogs \
+ --test-args="$GIT_TEST_OPTS" --slice "$((1+$2))/$3" ||
+handle_failed_tests