aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/dash/app/pal/stats/graphs.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-05-16 16:22:43 +0200
committerTibor Frank <tifrank@cisco.com>2022-05-17 07:12:07 +0000
commit88853d7d4e4461198213b9db021fe4e4985c9533 (patch)
tree12f8d694e37dd6e167ff312f1e32e7c2d5b769cb /resources/tools/dash/app/pal/stats/graphs.py
parent9feafea756fcdbd067fbc767ba16a8e3ecb6d6b2 (diff)
feat(uti): Add list of failed tests to stats
Change-Id: Ie0bedafc7be3235fe696af4f356e95f64773e783 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app/pal/stats/graphs.py')
-rw-r--r--resources/tools/dash/app/pal/stats/graphs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/tools/dash/app/pal/stats/graphs.py b/resources/tools/dash/app/pal/stats/graphs.py
index d9f49407d9..db6937402a 100644
--- a/resources/tools/dash/app/pal/stats/graphs.py
+++ b/resources/tools/dash/app/pal/stats/graphs.py
@@ -45,6 +45,7 @@ def graph_statistics(df: pd.DataFrame, job:str, layout: dict,
hover = list()
for _, row in data.iterrows():
+ d_type = "trex" if row["dut_type"] == "none" else row["dut_type"]
hover_itm = (
f"date: {row['start_time'].strftime('%d-%m-%Y %H:%M:%S')}<br>"
f"duration: "
@@ -52,7 +53,7 @@ def graph_statistics(df: pd.DataFrame, job:str, layout: dict,
f"{((int(row['duration']) % 3600) // 60):02d}<br>"
f"passed: {row['passed']}<br>"
f"failed: {row['failed']}<br>"
- f"{row['dut_type']}-ref: {row['dut_version']}<br>"
+ f"{d_type}-ref: {row['dut_version']}<br>"
f"csit-ref: {row['job']}/{row['build']}<br>"
f"hosts: {', '.join(row['hosts'])}"
)