lava_wait_jobs: Fill in job info device type for Tux jobs
Tux "job info" doesn't include device type, where the rest of code
expects it, we can get it only once we fetch original job definition.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Id9df70e154a9508ebdcc91f22c7a09fd1e5fa00b
diff --git a/lava_helper/lava_wait_jobs.py b/lava_helper/lava_wait_jobs.py
index c3f7e06..50cae41 100755
--- a/lava_helper/lava_wait_jobs.py
+++ b/lava_helper/lava_wait_jobs.py
@@ -118,6 +118,9 @@
results_file = os.path.join(job_dir, 'results.yaml')
definition = lava.get_job_definition(job_id, info, def_path)
info['metadata'] = definition.get('metadata', {})
+ # Fill in device type for Tux jobs
+ if 'device_type' not in info:
+ info['device_type'] = definition.get('device_type')
time.sleep(0.2) # be friendly to LAVA
lava.get_job_log(job_id, target_log)
time.sleep(0.2)