aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/dash/app/pal/stats/layout.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-05-03 15:41:11 +0200
committerTibor Frank <tifrank@cisco.com>2022-05-05 05:22:02 +0000
commit650d20f1fc6bdea669982f2a549744fcdcce5a37 (patch)
tree74fd4876d39618e35ce874dc262bee706564e10b /resources/tools/dash/app/pal/stats/layout.py
parent1daa6fdc0bae284dee1b61f34534e59b60b7526a (diff)
feat(uti): Generate structure of tests from data for trending
Change-Id: I14a59da85112473fde342b2f687bd87256a7d416 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app/pal/stats/layout.py')
-rw-r--r--resources/tools/dash/app/pal/stats/layout.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/tools/dash/app/pal/stats/layout.py b/resources/tools/dash/app/pal/stats/layout.py
index 405fd8b1a3..dedb265684 100644
--- a/resources/tools/dash/app/pal/stats/layout.py
+++ b/resources/tools/dash/app/pal/stats/layout.py
@@ -70,7 +70,7 @@ class Layout:
if self._time_period > data_time_period:
self._time_period = data_time_period
- self._jobs = sorted(list(data_stats["job"].unique()))
+ jobs = sorted(list(data_stats["job"].unique()))
job_info = {
"job": list(),
"dut": list(),
@@ -78,7 +78,7 @@ class Layout:
"cadence": list(),
"tbed": list()
}
- for job in self._jobs:
+ for job in jobs:
lst_job = job.split("-")
job_info["job"].append(job)
job_info["dut"].append(lst_job[1])
@@ -111,7 +111,8 @@ class Layout:
"passed": list(),
"failed": list()
}
- for job in self._jobs:
+ for job in jobs:
+ # TODO: Add list of failed tests for each build
df_job = df_tst_info.loc[(df_tst_info["job"] == job)]
builds = df_job["build"].unique()
for build in builds: