Skip to content

Commit

Permalink
Bug 1560593 - Cleanup.sh to treat core dumps as test failures on opti…
Browse files Browse the repository at this point in the history
…mized builds. r=jcj

Differential Revision: https://phabricator.services.mozilla.com/D41392

--HG--
extra : moz-landing-system : lando
  • Loading branch information
Kevin Jacobs committed Aug 9, 2019
1 parent e7e0e99 commit 7dccc1a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/common/cleanup.sh
Expand Up @@ -6,6 +6,12 @@


if [ -z "${CLEANUP}" -o "${CLEANUP}" = "${SCRIPTNAME}" ]; then
if [ -z "${BUILD_OPT}" ] && [ "$OBJDIR" == "Debug" ]; then
BUILD_OPT=0;
elif [ -z "${BUILD_OPT}" ] && [ "$OBJDIR" == "Release" ]; then
BUILD_OPT=1;
fi

echo
echo "SUMMARY:"
echo "========"
Expand Down Expand Up @@ -51,9 +57,10 @@ if [ -z "${CLEANUP}" -o "${CLEANUP}" = "${SCRIPTNAME}" ]; then
echo

html "END_OF_TEST<BR>"
html "</BODY></HTML>"
html "</BODY></HTML>"
rm -f ${TEMPFILES} 2>/dev/null
if [ ${FAILED_CNT} -gt 0 ] || [ ${ASAN_CNT} -gt 0 ]; then
if [ ${FAILED_CNT} -gt 0 ] || [ ${ASAN_CNT} -gt 0 ] ||
([ ${BUILD_OPT} -eq 1 ] && [ ${CORE_CNT} -gt 0 ]); then
exit 1
fi

Expand Down

0 comments on commit 7dccc1a

Please sign in to comment.