Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Report: Add message if no oper data is present
[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
cdce5f9
..
681cc1f
100644
(file)
--- a/
resources/tools/presentation/generator_tables.py
+++ b/
resources/tools/presentation/generator_tables.py
@@
-169,7
+169,7
@@
def table_merged_details(table, input_data):
format(col_data[:-5])
row_lst.append('"{0}"'.format(col_data))
except KeyError:
format(col_data[:-5])
row_lst.append('"{0}"'.format(col_data))
except KeyError:
- row_lst.append(
"No data"
)
+ row_lst.append(
'"Not captured"'
)
table_lst.append(row_lst)
# Write the data to file
table_lst.append(row_lst)
# Write the data to file
@@
-885,8
+885,14
@@
def table_last_failed_tests(table, input_data):
for job, builds in table["data"].items():
for build in builds:
build = str(build)
for job, builds in table["data"].items():
for build in builds:
build = str(build)
+ try:
+ version = input_data.metadata(job, build).get("version", "")
+ except KeyError:
+ logging.error("Data for {job}: {build} is not present.".
+ format(job=job, build=build))
+ return
tbl_list.append(build)
tbl_list.append(build)
- tbl_list.append(
input_data.metadata(job, build).get("version", "")
)
+ tbl_list.append(
version
)
for tst_name, tst_data in data[job][build].iteritems():
if tst_data["status"] != "FAIL":
continue
for tst_name, tst_data in data[job][build].iteritems():
if tst_data["status"] != "FAIL":
continue