aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_cpta.py
diff options
context:
space:
mode:
authorViliam Luc <vluc@cisco.com>2021-12-16 09:22:43 +0100
committerViliam Luc <vluc@cisco.com>2021-12-17 11:17:23 +0100
commitd24bcf6e10fdee8e6ba1a0ef2f75e69d9e9d0a40 (patch)
treeae5eaff7d04a37fbe236ee8eb5f3b71fcf7ea593 /resources/tools/presentation/generator_cpta.py
parent0d576e9088c81ae1678c36f594336f18db53605b (diff)
trending: hotfix failing trending emails
Legend was showing for each job_name. When trying to fix it we broke the cpta with I/O operation. This fixes legend positioning and I/O operation error. Signed-off-by: Viliam Luc <vluc@cisco.com> Change-Id: I809daa3eabe6a728e5e183630fc7c6615dfef8bf
Diffstat (limited to 'resources/tools/presentation/generator_cpta.py')
-rw-r--r--resources/tools/presentation/generator_cpta.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/resources/tools/presentation/generator_cpta.py b/resources/tools/presentation/generator_cpta.py
index 923d56bf42..1a2dbaa124 100644
--- a/resources/tools/presentation/generator_cpta.py
+++ b/resources/tools/presentation/generator_cpta.py
@@ -838,8 +838,6 @@ def _generate_all_charts(spec, input_data):
# Evaluate result:
if anomaly_classifications:
- legend_str = (f"Legend:\n[ Last trend in Mpps/Mcps | number of runs for"
- f" last trend | ")
result = u"PASS"
for job_name, job_data in anomaly_classifications.items():
data = []
@@ -877,9 +875,6 @@ def _generate_all_charts(spec, input_data):
if classification in (u"regression", u"outlier"):
result = u"FAIL"
-
- txt_file.write(f"\n{legend_str}regression in percentage ]")
-
file_name = \
f"{spec.cpta[u'output-file']}/progressions-{job_name}.txt"
with open(file_name, u'w') as txt_file:
@@ -904,8 +899,6 @@ def _generate_all_charts(spec, input_data):
ltc = line.split("|")[4]
txt_file.write(f"{tst_name} [ {trend}M | "
f"#{number} | {ltc}% ]\n")
-
- txt_file.write(f"\n{legend_str}progression in percentage ]")
else:
result = u"FAIL"