From 4775366636f137998d7f878cfa0f75f658ae01de Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Wed, 20 Oct 2021 10:18:52 +0200 Subject: Trendig: Fix processing of trex data Change-Id: I0ee22dc43d670ebea3dad930b79c2cda203083a3 Signed-off-by: Tibor Frank --- resources/tools/presentation/generator_plots.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'resources/tools/presentation') 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 = [ -- cgit 1.2.3-korg