mirror of
https://github.com/git/git.git
synced 2026-03-04 22:47:35 +01:00
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>
14 lines
425 B
Bash
Executable File
14 lines
425 B
Bash
Executable File
#!/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 "$(($2))/$3" ||
|
|
handle_failed_tests
|