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>
# 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