From: Alexandru Avadanii Date: Thu, 16 Apr 2020 12:52:40 +0000 (+0200) Subject: iec: seba_on_arm: fail job on error X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F64%2F3364%2F1;p=ci-management.git iec: seba_on_arm: fail job on error Previously, seba_on_arm install/test jobs used to always return a zero exit code, marking the job successful even when it failed. Add `set -e` so the job is marked as failed when errors occur. Change-Id: Id67ac0695255e475f1e6147266ac7051d3567913 Signed-off-by: Alexandru Avadanii --- diff --git a/jjb/iec/iec-seba_on_arm.sh b/jjb/iec/iec-seba_on_arm.sh index 87b5189..b0a062c 100755 --- a/jjb/iec/iec-seba_on_arm.sh +++ b/jjb/iec/iec-seba_on_arm.sh @@ -9,7 +9,7 @@ ############################################################################## export TERM="vt220" -set -x +set -ex echo "JOB_NAME=${JOB_NAME}" @@ -101,7 +101,6 @@ case "${JOB_NAME}" in echo "${TEST_CMD}" eval ${TEST_CMD} - exit_code=$? ;; *) echo "Cannot determine what to do for seba_on_arm from ${JOB_NAME}"