diff options
author | 2019-03-27 17:09:18 +0100 | |
---|---|---|
committer | 2019-03-27 17:09:18 +0100 | |
commit | 236af54101db4914a8105160b5d3feb5ff6c2cc9 (patch) | |
tree | f9c47e237be1d610359485c6d5eb60f8ce563a66 | |
parent | d22f7f4f8d2f9971415dfcc005943900d09dd156 (diff) |
jjb/common: lava-labs-prepare: check only the available boards
To avoid choosing a board with an offline status, this patch check
and lists only the boards with an Idle,Good status.
Change-Id: I64673c87b038b7e7e82001f7bfd2a35af5b73d60
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
-rw-r--r-- | jjb/common/include-agl-lava-labs-prepare.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/common/include-agl-lava-labs-prepare.sh b/jjb/common/include-agl-lava-labs-prepare.sh index 70f3be67..f32e16f9 100644 --- a/jjb/common/include-agl-lava-labs-prepare.sh +++ b/jjb/common/include-agl-lava-labs-prepare.sh @@ -75,7 +75,7 @@ for lab in "${!labs[@]}"; do # lavacli: Find the LAVA lab that has the device available to run the job echo -n "lavacli: Checking for $lava_device at $full_url... " - lavacli_line=$(lavacli -i $lab devices list | grep $lava_device | head -1) + lavacli_line=$(lavacli -i $lab devices list | grep $lava_device | grep Idle,Good | head -1) lavacli_line=$(echo "$lavacli_line" | tr -d '[:space:]') if [ -z "$lavacli_line" ]; then |