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 10:18:52 +0200
commit4775366636f137998d7f878cfa0f75f658ae01de (patch)
tree47d0ae4f5a5dcd54b779943b2715b08dcd1b6137
parent2dcd81931886e8fea0c724d91f888aab9bfb24a8 (diff)
Trendig: Fix processing of trex data
Change-Id: I0ee22dc43d670ebea3dad930b79c2cda203083a3 Signed-off-by: Tibor Frank <tifrank@cisco.com>
-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 = [