jjb/common: run-test-prepare: fix unmapped boards 57/12457/1
authorKevin Hilman <khilman@baylibre.com>
Tue, 12 Dec 2017 05:07:43 +0000 (05:07 +0000)
committerKevin Hilman <khilman@baylibre.com>
Tue, 12 Dec 2017 05:10:56 +0000 (05:10 +0000)
If a $MACHINE doesn't have a proper mapping for LAVA or
releng-scripts, fail gracefully (exit 0)

Change-Id: I8d25e2dd861cb29cefd74c07138f5f78e590569f
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
jjb/common/include-agl-run-test-prepare.sh

index 2045617..f0701bf 100644 (file)
@@ -41,6 +41,11 @@ lava_device=${arr[0]}
 releng_device=${arr[1]}
 # And agl_device=${MACHINE}
 
+if [ -z "${lava_device}" -o -z "${releng_device}" ]; then
+    echo "Board not supported: $MACHINE"
+    exit 0
+fi
+
 CREATE_ARGS=""
 CREATE_ARGS+="--machine ${releng_device} "