From: Kevin Hilman Date: Thu, 14 Mar 2019 19:05:45 +0000 (-0700) Subject: jjb/common: lava-labs-prepare: fix lavacli config error X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=2bd4a410d89f44cc243aec504c1549ee6600973f;p=ci-management.git jjb/common: lava-labs-prepare: fix lavacli config error lavacli doesn't like an empty config file. The first "identities add" will automatcially create the new config file, as long as the ~/.config dir exists. Change-Id: I337f8b6883362a0f01b58e34645c825a186ab7d7 Signed-off-by: Kevin Hilman --- diff --git a/jjb/common/include-agl-lava-labs-prepare.sh b/jjb/common/include-agl-lava-labs-prepare.sh index 2335b0a1..ac46bf54 100644 --- a/jjb/common/include-agl-lava-labs-prepare.sh +++ b/jjb/common/include-agl-lava-labs-prepare.sh @@ -70,7 +70,7 @@ for lab in "${!labs[@]}"; do rm -f $token_file # lavacli auth using token - mkdir -p ~/.config && touch ~/.config/lavacli.yaml + mkdir -p ~/.config lavacli identities add --token ${token} --uri $full_url --username $user $lab # lavacli: Find the LAVA lab that has the device available to run the job