fix: respect exit code from package run

Fixes the issue where the job succeeds even when there are always
failing tests.
This commit is contained in:
Patryk Osmaczko 2024-03-06 16:30:19 +01:00 committed by osmaczko
parent 580f697f57
commit 86ae80b108
1 changed files with 1 additions and 1 deletions

View File

@ -100,8 +100,8 @@ for package in ${UNIT_TEST_PACKAGES}; do
for ((i=1; i<=UNIT_TEST_COUNT; i++)); do
if ! is_parallelizable "${package}" || [[ "$UNIT_TEST_FAILFAST" == 'true' ]]; then
run_test_for_package "${package}" "${i}"
if [[ "$UNIT_TEST_FAILFAST" == 'true' ]]; then
go_test_exit=$?
if [[ "$UNIT_TEST_FAILFAST" == 'true' ]]; then
if [[ "${go_test_exit}" -ne 0 ]]; then
exit "${go_test_exit}"
fi