aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2021-10-20 10:18:52 +0200
committerTibor Frank <tifrank@cisco.com>2021-10-20 08:20:31 +0000
commitd928cee692ace0b68d0f4878e989a7430b5378d0 (patch)
tree1157f1f034c0715ebe1e9b37890354e0a1eb2bb5
parent70bb9b2e0a97f2d8647841883654ca4a1fca271e (diff)
Trendig: Fix processing of trex data
Change-Id: I0ee22dc43d670ebea3dad930b79c2cda203083a3 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 4775366636f137998d7f878cfa0f75f658ae01de)
-rw-r--r--resources/tools/presentation/generator_plots.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index 1b95030818..da30cafe67 100644
--- a/resources/tools/presentation/generator_plots.py
+++ b/resources/tools/presentation/generator_plots.py
@@ -145,24 +145,32 @@ def plot_statistics(plot, input_data):
d_y_fail = meta[u"tests_failed"]
minutes = meta[u"elapsedtime"] // 60000
duration = f"{(minutes // 60):02d}:{(minutes % 60):02d}"
- version = meta[u"version"]
+ version = meta.get(u"version", u"")
except (KeyError, IndexError, ValueError, AttributeError):
continue
data_x.append(date)
data_y_pass.append(d_y_pass)
data_y_fail.append(d_y_fail)
data_y_duration.append(minutes)
+ if u"vpp" in job:
+ sut = u"vpp"
+ elif u"dpdk" in job:
+ sut = u"dpdk"
+ elif u"trex" in job:
+ sut = u"trex"
+ else:
+ sut = u""
hover_text.append(hover_str.format(
date=date,
passed=d_y_pass,
failed=d_y_fail,
duration=duration,
- sut=u"vpp" if u"vpp" in job else u"dpdk",
+ sut=sut,
build=version,
test=u"mrr" if u"mrr" in job else u"ndrpdr",
period=u"daily" if u"daily" in job else u"weekly",
build_nr=build_nr,
- testbed=meta[u"testbed"]
+ testbed=meta.get(u"testbed", u"")
))
traces = [