jjb/common: lava-labs-prepare.sh: disable error exit 65/12665/1
authorLoys Ollivier <lollivier@baylibre.com>
Mon, 18 Dec 2017 09:07:19 +0000 (10:07 +0100)
committerLoys Ollivier <lollivier@baylibre.com>
Mon, 18 Dec 2017 09:07:19 +0000 (10:07 +0100)
Disable exit on error detection in lava-labs-prepare.sh, this script is
looking for error codes when needed and exits gracefully.

Change-Id: I0044466ef3f7ad7b606b1452d51676a4472e87d0
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
jjb/common/include-agl-lava-labs-prepare.sh

index f02a2b3..947e086 100644 (file)
 #
 # Strucuture: [JENKINS_LAB_NAME]="LAB_URL;JENKINS_LAB_USER;JENKINS_LAB_TOKEN;RELENG_LAB_NAME"
 #
+
+# Let the script handle errors nicely
+set +e
+
 declare -A labs
 labs=(
       [agl]="https://lava.automotivelinux.org/;$LAB_AGL_USER;$LAB_AGL_TOKEN;lab-agl-core"
@@ -103,3 +107,6 @@ if [ "$device_available" -eq 0 ]; then
     echo "ERROR: device not found in any available lab."
     exit 0
 fi
+
+# Re-enable error detection
+set -e