mirror of
https://github.com/git/git.git
synced 2026-02-27 18:29:43 +00:00
The "run-test-slice.sh" script executes the test helper to slice up tests passed to it. As the execution is part of a pipe though, we end up ignoring any potential error code returned by the helper. Make the code more robust by storing the tests in a variable first so that we can split up the pipeline. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
19 lines
430 B
Bash
Executable File
19 lines
430 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" == "0" ] ; then
|
|
group "Run unit tests" make --quiet -C t unit-tests-test-tool
|
|
fi
|
|
|
|
check_unignored_build_artifacts
|