mirror of
https://github.com/status-im/status-go.git
synced 2025-01-18 18:55:47 +00:00
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…
x
Reference in New Issue
Block a user