From: Kevin Hilman Date: Fri, 10 Nov 2017 00:25:00 +0000 (+0000) Subject: jjb/common: lava-jobs-submit: fixup device-list failure X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F99%2F11799%2F1;p=ci-management.git jjb/common: lava-jobs-submit: fixup device-list failure 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 --- diff --git a/jjb/common/include-agl-lava-jobs-submit.sh b/jjb/common/include-agl-lava-jobs-submit.sh index 8ab3df15..3cd0d9ff 100644 --- a/jjb/common/include-agl-lava-jobs-submit.sh +++ b/jjb/common/include-agl-lava-jobs-submit.sh @@ -27,18 +27,6 @@ device_types+=" " 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