The previous reordering of lava lab selection result in a failure
the second time through the devices list.
This patch fixes the failure enough to get things working again,
but the ordering needs to be fixed so that there is only one pass
through the devices-list.
Change-Id: I1131b380cb5a8a8235cbf1f838574726d6ef11a6
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
device_types+=${dt_aliases[$__device_type]}
for device_type in $device_types; do
- val=${labs[$LAVA_LAB]}
- OFS=${IFS}
- IFS=';'
- arr=(${labs[$LAVA_LAB]})
- IFS=${OFS}
-
- url=${arr[0]}
- user=${arr[1]}
-
- # LAVA URL with username
- full_url=${url/:\/\//:\/\/${user}\@}
-
echo -n "Checking for $device_type at $full_url... "
line=$(lava-tool devices-list $full_url |grep $device_type | tr -d '[:space:]')
if [ -z "$line" ]; then