Skip to content

Commit

Permalink
Bug 1560593 - Check that BUILD_OPT is defined before testing its valu…
Browse files Browse the repository at this point in the history
…e. r=jcj

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

--HG--
extra : moz-landing-system : lando
  • Loading branch information
Kevin Jacobs committed Aug 23, 2019
1 parent b671653 commit 4becded
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/common/cleanup.sh
Expand Up @@ -6,9 +6,9 @@


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

Expand Down Expand Up @@ -60,7 +60,7 @@ if [ -z "${CLEANUP}" -o "${CLEANUP}" = "${SCRIPTNAME}" ]; then
html "</BODY></HTML>"
rm -f ${TEMPFILES} 2>/dev/null
if [ ${FAILED_CNT} -gt 0 ] || [ ${ASAN_CNT} -gt 0 ] ||
([ ${BUILD_OPT} -eq 1 ] && [ ${CORE_CNT} -gt 0 ]); then
([ ${CORE_CNT} -gt 0 ] && [ -n "${BUILD_OPT}" ] && [ ${BUILD_OPT} -eq 1 ]); then
exit 1
fi

Expand Down

0 comments on commit 4becded

Please sign in to comment.