From ea1f6ab34ba65fd0d5b048b5391a240488386600 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Thu, 16 Apr 2020 14:52:40 +0200 Subject: [PATCH] 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 --- jjb/iec/iec-seba_on_arm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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}" -- 2.16.6