fix(run_unit_tests.sh)_: proper exit code on test fail (#5797)
This commit is contained in:
parent
3ca2d6eb23
commit
6287b5fcf7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue