LAVA scripts: Don't assume job id is int
This no longer will be true with TuxSuite integration, so just treat id as
a string.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I37e3d0bfede394804dcc26fc71734cdf6ad16f58
diff --git a/lava_helper/codecov_helper.py b/lava_helper/codecov_helper.py
index abae19e..f108437 100644
--- a/lava_helper/codecov_helper.py
+++ b/lava_helper/codecov_helper.py
@@ -55,7 +55,7 @@
os.path.join(job_dir, os.path.basename(fname))
)
- _log.info("Producing coverage report for job %d", job_id)
+ _log.info("Producing coverage report for job %s", job_id)
dl_artifact("spe/bin/bl2.axf")
dl_artifact("spe/bin/tfm_s.axf")
dl_artifact("nspe/bin/tfm_ns.axf")
diff --git a/lava_helper/lava_wait_jobs.py b/lava_helper/lava_wait_jobs.py
index ec1191a..6791c25 100755
--- a/lava_helper/lava_wait_jobs.py
+++ b/lava_helper/lava_wait_jobs.py
@@ -75,7 +75,7 @@
for job_id, info in jobs.items():
if not (info['health'] == "Complete" and info['state'] == "Finished"):
_log.warning(
- "Will resubmit job %d because of its state: %s, health: %s",
+ "Will resubmit job %s because of its state: %s, health: %s",
job_id, info["state"], info["health"]
)
job_dir = info['job_dir']
diff --git a/tfm_ci_pylib/lava_rpc_connector.py b/tfm_ci_pylib/lava_rpc_connector.py
index da7989e..6baa90a 100644
--- a/tfm_ci_pylib/lava_rpc_connector.py
+++ b/tfm_ci_pylib/lava_rpc_connector.py
@@ -261,7 +261,7 @@
cur_status['error_reason'] = self.get_error_reason(job_id)
finished_jobs[job_id] = cur_status
_log.info(
- "Job %d finished in %ds with state: %s, health: %s. Remaining: %d",
+ "Job %s finished in %ds with state: %s, health: %s. Remaining: %d",
job_id, time.time() - start_t,
cur_status['state'],
cur_status['health'],