fix(run_unit_tests)_: don't exit in nightly runs (#5808)
This commit is contained in:
parent
17c30ac532
commit
00db9c8a9b
|
@ -127,13 +127,17 @@ else
|
||||||
wait
|
wait
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for exit_code_file in "${GIT_ROOT}"/exit_code_*.txt; do
|
# When running in PRs (count=1), early exit if any test failed.
|
||||||
|
# When running nightly (count>1), generate test stats ant coverage reports anyway.
|
||||||
|
if [[ $UNIT_TEST_COUNT -eq 1 ]]; then
|
||||||
|
for exit_code_file in "${GIT_ROOT}"/exit_code_*.txt; do
|
||||||
read exit_code < "${exit_code_file}"
|
read exit_code < "${exit_code_file}"
|
||||||
if [[ "${exit_code}" -ne 0 ]]; then
|
if [[ "${exit_code}" -ne 0 ]]; then
|
||||||
echo -e "${RED}Testing failed${RST}, exit code: ${exit_code}"
|
echo -e "${RED}Testing failed${RST}, exit code: ${exit_code}"
|
||||||
exit ${exit_code}
|
exit ${exit_code}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
# Gather test coverage results
|
# Gather test coverage results
|
||||||
merged_coverage_report="coverage_merged.out"
|
merged_coverage_report="coverage_merged.out"
|
||||||
|
|
Loading…
Reference in New Issue