diff options
author | Khouloud Touil <ktouil@baylibre.com> | 2019-04-09 15:53:44 +0200 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2019-04-29 16:33:51 +0200 |
commit | 8b6d59e02aa2401097ff901a92d3623e43e61f02 (patch) | |
tree | 2acf1f5805cc263ef1a18355bc0c8c52babd7ff3 /jjb/common | |
parent | 00a7f42b60833d481f6476fee453c1192a395a0b (diff) |
Delete-lava-tool-commands-already-replaced-with-lava
As the lavacli works fine now, the lava-tool part is no longer needed.
This patch delete just the part to list the devices and the part of auth
using lava-tool.
Change-Id: If3e27de642b4c5f901dec4453341dc07f71873d8
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
Diffstat (limited to 'jjb/common')
-rw-r--r-- | jjb/common/include-agl-lava-labs-prepare.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/jjb/common/include-agl-lava-labs-prepare.sh b/jjb/common/include-agl-lava-labs-prepare.sh index 19801e13..ea19d28a 100644 --- a/jjb/common/include-agl-lava-labs-prepare.sh +++ b/jjb/common/include-agl-lava-labs-prepare.sh @@ -60,15 +60,6 @@ for lab in "${!labs[@]}"; do full_url+="RPC2/" # entry point for XML-RPC API echo "LAVA auth-add for lab: $lab, URL: $full_url" - # LAVA auth using token - echo ${token} > $token_file - lava-tool auth-add --token $token_file $full_url - if [ $? != 0 ]; then - echo "ERROR: Lab ${lab}: lava-tool auth-add failed." - continue - fi - rm -f $token_file - # lavacli auth using token mkdir -p ~/.config lavacli identities add --token ${token} --uri ${url}/RPC2 --username $user $lab @@ -96,16 +87,6 @@ for lab in "${!labs[@]}"; do echo "lavacli: did not find any device available: $lavacli_line" fi - # Find the LAVA Lab that has the device available to run the job - echo -n "Checking for $lava_device at $full_url... " - line=$(lava-tool devices-list $full_url | grep $lava_device) - line=$(echo "$line" | tr -d '[:space:]') - - if [ -z "$line" ]; then - echo "not found." - continue - fi - if [ x"$device_status" = x"Reserved,Good" ]; then retries=10 else |