From 17791dda1d6e2d8ce0e963239c571ea66e9f2a69 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Mon, 24 Jun 2024 08:49:16 +0000 Subject: C-Dash: fix in test job statistics Change-Id: I290b3d01f578a2809cf3b89fe91faa51b6dc2522 Signed-off-by: Tibor Frank --- csit.infra.dash/app/cdash/stats/layout.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'csit.infra.dash/app/cdash/stats') diff --git a/csit.infra.dash/app/cdash/stats/layout.py b/csit.infra.dash/app/cdash/stats/layout.py index 616a4028e6..6f7031aedc 100644 --- a/csit.infra.dash/app/cdash/stats/layout.py +++ b/csit.infra.dash/app/cdash/stats/layout.py @@ -92,15 +92,16 @@ class Layout: "tbed": list() } for job in jobs: + idx = -3 if "-x-" in job else -2 lst_job = job.split("-") d_job_info["job"].append(job) d_job_info["dut"].append(lst_job[1]) d_job_info["ttype"].append(lst_job[3]) d_job_info["cadence"].append(lst_job[4]) - d_job_info["tbed"].append("-".join(lst_job[-2:])) + d_job_info["tbed"].append("-".join(lst_job[idx:])) self._job_info = pd.DataFrame.from_dict(d_job_info) - self._default = set_job_params(self._job_info, C.STATS_DEFAULT_JOB) + self._default = set_job_params(self._job_info, d_job_info["job"][0]) tst_info = { "job": list(), -- cgit 1.2.3-korg