Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-1136: Trending: Redirect "new" to the index.html
[csit.git]
/
resources
/
tools
/
presentation
/
generator_tables.py
diff --git
a/resources/tools/presentation/generator_tables.py
b/resources/tools/presentation/generator_tables.py
index
43117cc
..
40eda7b
100644
(file)
--- 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",
# Prepare the header of the tables
header = ["Test Case",
- "Fails [#]",
- "Last Fail
[Timestamp
]",
- "Last Fail
[VPP Buil
d]",
- "Last Fail
[CSIT Buil
d]"]
+ "Fail
ure
s [#]",
+ "Last Fail
ure [Time
]",
+ "Last Fail
ure [VPP-Build-I
d]",
+ "Last Fail
ure [CSIT-Job-Build-I
d]"]
# Generate the data for the table according to the model in the table
# specification
# 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:
th.text = item
# Rows:
- colors = {"very-bad": ("#ffcccc", "#ff9999"),
- "bad": ("#e9f1fb", "#d4e4f7")}
+ colors = ("#e9f1fb", "#d4e4f7")
for r_idx, row in enumerate(csv_lst[1:]):
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:
tr = ET.SubElement(failed_tests, "tr", attrib=dict(bgcolor=background))
# Columns: