aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-02-27 15:11:52 -0800
committerJunio C Hamano <gitster@pobox.com>2026-02-27 15:11:52 -0800
commita62d0da86a763ab03604d75eb287776a7d639e1f (patch)
tree049519d919bd8798c701ad8f88fad5e09b1356a1 /ci
parent0f0a57e1e3df3a41c1ccc6dcbd4642b83e977346 (diff)
parent51338373928f47bfce2c345c97e753be67622ab6 (diff)
downloadgit-a62d0da86a763ab03604d75eb287776a7d639e1f.tar.xz
Merge branch 'ps/ci-gitlab-msvc-updates'
CI update. * ps/ci-gitlab-msvc-updates: gitlab-ci: handle failed tests on MSVC+Meson job gitlab-ci: use "run-test-slice-meson.sh" ci: make test slicing consistent across Meson/Make github: fix Meson tests not executing at all meson: fix MERGE_TOOL_DIR with "--no-bin-wrappers" ci: don't skip smallest test slice in GitLab ci: handle failures of test-slice helper
Diffstat (limited to 'ci')
-rwxr-xr-xci/run-test-slice-meson.sh2
-rwxr-xr-xci/run-test-slice.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/ci/run-test-slice-meson.sh b/ci/run-test-slice-meson.sh
index 961c94fba0..a6df927ba5 100755
--- a/ci/run-test-slice-meson.sh
+++ b/ci/run-test-slice-meson.sh
@@ -9,5 +9,5 @@
group "Run tests" \
meson test -C "$1" --no-rebuild --print-errorlogs \
- --test-args="$GIT_TEST_OPTS" --slice "$((1+$2))/$3" ||
+ --test-args="$GIT_TEST_OPTS" --slice "$(($2))/$3" ||
handle_failed_tests
diff --git a/ci/run-test-slice.sh b/ci/run-test-slice.sh
index 0444c79c02..ff948e397f 100755
--- a/ci/run-test-slice.sh
+++ b/ci/run-test-slice.sh
@@ -5,9 +5,9 @@
. ${0%/*}/lib.sh
-group "Run tests" make --quiet -C t T="$(cd t &&
- ./helper/test-tool path-utils slice-tests "$1" "$2" t[0-9]*.sh |
- tr '\n' ' ')" ||
+TESTS=$(cd t && ./helper/test-tool path-utils slice-tests "$1" "$2" t[0-9]*.sh)
+
+group "Run tests" make --quiet -C t T="$(echo "$TESTS" | tr '\n' ' ')" ||
handle_failed_tests
# We only have one unit test at the moment, so run it in the first slice