jjb/common/lava-labs-prepare: LAVA fail gracefully if device not found 27/12227/2
authorlollivier <lollivier@baylibre.com>
Thu, 30 Nov 2017 09:56:54 +0000 (10:56 +0100)
committerlollivier <lollivier@baylibre.com>
Thu, 30 Nov 2017 10:00:48 +0000 (11:00 +0100)
commit0219f5537c874fe92529cca26b8ee52b686489d5
treebebcaab580e9e94b29122885ccebc5080a7f5236
parent4c23c40c069440a065065843b3cba1c0190d3f0e
jjb/common/lava-labs-prepare: LAVA fail gracefully if device not found

When LAVA labs are offline, or otherwise unavailable,
"lava-tool devices-list" fails causing the whole job to fail.

Detect this error earlier when trying to add the authentication and skip
the lab if offline.
If the device was not found in any lab, exit with success.

JIRA: SPEC-1142

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