run_lava_job: Remove existing lavacli yaml and recreate it.
tf-worker jobs for Juno are failing with below error:
python3 /arm/projectscratch/ssg/trusted-fw/ci-workspace/tf-main-1987/
trusted-firmware-ci/job/tf-worker/run_lava.py /arm/projectscratch/ssg/
trusted-fw/ci-workspace/tf-main-1987/trusted-firmware-ci/job/tf-worker/
run_lava_job.sh artefacts/debug/juno.yaml --username **** --token ****
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /work/workspace/workspace/tf-worker/venv/bin/python3
Also creating executable in /work/workspace/workspace/tf-worker/venv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
Unknown error: mapping values are not allowed here
in "<unicode string>", line 4, column 30:
username: **** timeout: 60
Fixed this failure by removing existing lavacli.yaml file and recreating
it.
This patch is verified by successfully running the 'tf-main' jenkins
job.
Change-Id: I4b486116c3d22f6ce35d02f54edb9ea5957641c8
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
diff --git a/job/tf-worker/run_lava_job.sh b/job/tf-worker/run_lava_job.sh
index 6a092a7..4386333 100755
--- a/job/tf-worker/run_lava_job.sh
+++ b/job/tf-worker/run_lava_job.sh
@@ -38,6 +38,8 @@
source venv/bin/activate
pip install -q lavacli
+rm ~/.config/lavacli.yaml
+
# Configure lavacli
lavacli identities add \
--username $LAVA_USER \