diff options
author | Tibor Frank <tifrank@cisco.com> | 2024-06-24 08:49:16 +0000 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2024-06-24 08:50:40 +0000 |
commit | 17791dda1d6e2d8ce0e963239c571ea66e9f2a69 (patch) | |
tree | c60b62119edf8d9d576d93c8ee0ddb8d0de4273e /csit.infra.dash/app/cdash/utils/utils.py | |
parent | 60206080f32048c08c66e6f64474a12c97520cdb (diff) |
C-Dash: fix in test job statistics
Change-Id: I290b3d01f578a2809cf3b89fe91faa51b6dc2522
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'csit.infra.dash/app/cdash/utils/utils.py')
-rw-r--r-- | csit.infra.dash/app/cdash/utils/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/csit.infra.dash/app/cdash/utils/utils.py b/csit.infra.dash/app/cdash/utils/utils.py index e203dfbccd..27ecd1f763 100644 --- a/csit.infra.dash/app/cdash/utils/utils.py +++ b/csit.infra.dash/app/cdash/utils/utils.py @@ -286,12 +286,13 @@ def set_job_params(df: pd.DataFrame, job: str) -> dict: """ l_job = job.split("-") + idx = -3 if "-x-" in job else -2 return { "job": job, "dut": l_job[1], "ttype": l_job[3], "cadence": l_job[4], - "tbed": "-".join(l_job[-2:]), + "tbed": "-".join(l_job[idx:]), "duts": generate_options(get_duts(df)), "ttypes": generate_options(get_ttypes(df, l_job[1])), "cadences": generate_options(get_cadences(df, l_job[1], l_job[3])), |