fix(run_unit_tests.sh)_: proper exit code on test fail (#5797)

This commit is contained in:
Igor Sirotin 2024-09-04 11:24:26 +01:00 committed by GitHub
parent 3ca2d6eb23
commit 6287b5fcf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -127,6 +127,14 @@ else
wait
fi
for exit_code_file in "${GIT_ROOT}"/exit_code_*.txt; do
read exit_code < "${exit_code_file}"
if [[ "${exit_code}" -ne 0 ]]; then
echo -e "${RED}Testing failed${RST}, exit code: ${exit_code}"
exit ${exit_code}
fi
done
# Gather test coverage results
merged_coverage_report="coverage_merged.out"
final_coverage_report="c.out" # Name expected by cc-test-reporter