aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-06-20 15:21:47 +0200
committerTibor Frank <tifrank@cisco.com>2018-06-20 15:21:47 +0200
commitc298d66734d2d40e343ac4c60703b9838bdd6301 (patch)
treea082022e2d5acce441bb7d13949cc00e97b09c47 /resources/tools/presentation
parent2e63ef13b419da1198439617e66cb0f1cfe6be65 (diff)
FIX: PAL - list of failed tests
Change-Id: I03341283270e53df6bcb08b32f1787f61ebb601c Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation')
-rw-r--r--resources/tools/presentation/generator_tables.py17
1 files changed, 6 insertions, 11 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 43117cc4ed..40eda7b8d9 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -970,10 +970,10 @@ def table_failed_tests(table, input_data):
# Prepare the header of the tables
header = ["Test Case",
- "Fails [#]",
- "Last Fail [Timestamp]",
- "Last Fail [VPP Build]",
- "Last Fail [CSIT Build]"]
+ "Failures [#]",
+ "Last Failure [Time]",
+ "Last Failure [VPP-Build-Id]",
+ "Last Failure [CSIT-Job-Build-Id]"]
# Generate the data for the table according to the model in the table
# specification
@@ -1070,14 +1070,9 @@ def table_failed_tests_html(table, input_data):
th.text = item
# Rows:
- colors = {"very-bad": ("#ffcccc", "#ff9999"),
- "bad": ("#e9f1fb", "#d4e4f7")}
+ colors = ("#e9f1fb", "#d4e4f7")
for r_idx, row in enumerate(csv_lst[1:]):
- if int(row[1]) > 7:
- color = "very-bad"
- else:
- color = "bad"
- background = colors[color][r_idx % 2]
+ background = colors[r_idx % 2]
tr = ET.SubElement(failed_tests, "tr", attrib=dict(bgcolor=background))
# Columns: