mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
tests: fail and report when a parallel build fails (or times out)
When a parallel build fails (or when it times out, if timeout is present), the test suite should not blithely succeed. Catch these failures and at least report them. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
This commit is contained in:
parent
73bf7e532e
commit
c88e030580
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,11 @@ if test -z "$NOTMUCH_TEST_SERIALIZE" && command -v parallel >/dev/null ; then
|
|||
echo "INFO: running tests with moreutils parallel"
|
||||
$TEST_TIMEOUT_CMD parallel -- $TESTS
|
||||
fi
|
||||
RES=$?
|
||||
if [[ $RES != 0 ]]; then
|
||||
echo "parallel test suite returned error code $RES"
|
||||
exit $RES
|
||||
fi
|
||||
else
|
||||
for test in $TESTS; do
|
||||
$TEST_TIMEOUT_CMD $test "$@" &
|
||||
|
|
Loading…
Reference in a new issue