ci: make test slicing consistent across Meson/Make
In the preceding commit we have adjusted test slicing to be one-based when using the "ci/run-test-slice.sh" script. But we also have an equivalent script for Meson that is still zero-based, which is of course inconsistent. Adapt the script to be one-based, as well, and adapt the GitHub workflow accordingly. Note that GitLab doesn't yet use the script, so it does not need to be adapted. This will change in the next commit though. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Patrick Steinhardt committed
Feb 19, 2026 at 07:25 UTC
2cca4ef34306c04a8ae891e0ea4a876922069dce
2 files changed
+2
-2
.github/workflows/main.yml
+1
-1
@@ -298,7 +298,7 @@ jobs:
298
path: build
299
- name: Test
300
shell: bash
301
- run: ci/run-test-slice-meson.sh build ${{matrix.nr}} 10
301
+ run: ci/run-test-slice-meson.sh build $((${{matrix.nr}} + 1)) 10
302
- name: print test failures
303
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
304
shell: bash
ci/run-test-slice-meson.sh
+1
-1
@@ -9,5 +9,5 @@
9
10
group "Run tests" \
11
meson test -C "$1" --no-rebuild --print-errorlogs \
12
- --test-args="$GIT_TEST_OPTS" --slice "$((1+$2))/$3" ||
12
+ --test-args="$GIT_TEST_OPTS" --slice "$(($2))/$3" ||
13
handle_failed_tests