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>
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 "$@" &