Since 3141df7ec4 (ci: don't skip smallest test slice in GitLab,
2026-02-19) both our CI workflows at GitLab and GitHub use one-indexed
slices to run windows tests. Modify the check for running unit tests on
Windows to also be one-indexed as otherwise, the unit tests are never
run.
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
19 lines
431 B
Bash
Executable File
19 lines
431 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Test Git in parallel
|
|
#
|
|
|
|
. ${0%/*}/lib.sh
|
|
|
|
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.
|
|
if [ "$1" == "1" ] ; then
|
|
group "Run unit tests" make --quiet -C t unit-tests-test-tool
|
|
fi
|
|
|
|
check_unignored_build_artifacts
|