diff options
author | Kevin Hilman <khilman@baylibre.com> | 2017-12-12 05:07:43 +0000 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2017-12-12 05:10:56 +0000 |
commit | bcb4e917ab4310ea99d43628fe75d9e545115379 (patch) | |
tree | af0775ee162ce7263d0994260c0f4b2347e4430c | |
parent | a9fcea01daf49de7099a85691eb4e9fc3b091b7e (diff) |
jjb/common: run-test-prepare: fix unmapped boards
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>
-rw-r--r-- | jjb/common/include-agl-run-test-prepare.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jjb/common/include-agl-run-test-prepare.sh b/jjb/common/include-agl-run-test-prepare.sh index 20456175..f0701bfc 100644 --- a/jjb/common/include-agl-run-test-prepare.sh +++ b/jjb/common/include-agl-run-test-prepare.sh @@ -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} " |