iec: seba_on_arm: fail job on error 64/3364/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 16 Apr 2020 12:52:40 +0000 (14:52 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 16 Apr 2020 12:52:40 +0000 (14:52 +0200)
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 <Alexandru.Avadanii@enea.com>
jjb/iec/iec-seba_on_arm.sh

index 87b5189..b0a062c 100755 (executable)
@@ -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}"