diff options
author | Tibor Frank <tifrank@cisco.com> | 2019-10-02 14:03:57 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2019-10-03 13:37:16 +0200 |
commit | 30c5d0cb071650a26357ef6e2737f17422ad824d (patch) | |
tree | e52f951dff484b010794926783695e676bf3053b /resources/tools/presentation/generator_tables.py | |
parent | 43e969af97832930a122aca538ef271e714838b5 (diff) |
Trending: Report also nr of passed tests in email
Change-Id: I7ae188f5f684bd93352255d6b5c491b6d78c822c
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r-- | resources/tools/presentation/generator_tables.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index d09f4633bb..2e6cd593e6 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -1327,14 +1327,22 @@ def table_last_failed_tests(table, input_data): return tbl_list.append(build) tbl_list.append(version) + failed_tests = list() + passed = 0 + failed = 0 for tst_name, tst_data in data[job][build].iteritems(): if tst_data["status"] != "FAIL": + passed += 1 continue + failed += 1 groups = re.search(REGEX_NIC, tst_data["parent"]) if not groups: continue nic = groups.group(0) - tbl_list.append("{0}-{1}".format(nic, tst_data["name"])) + failed_tests.append("{0}-{1}".format(nic, tst_data["name"])) + tbl_list.append(str(passed)) + tbl_list.append(str(failed)) + tbl_list.extend(failed_tests) file_name = "{0}{1}".format(table["output-file"], table["output-file-ext"]) logging.info(" Writing file: '{0}'".format(file_name)) |