diff options
author | Tibor Frank <tifrank@cisco.com> | 2022-02-03 16:19:24 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2022-02-03 15:22:57 +0000 |
commit | 4c7d924468b1314f5ce0f2fe0194412a7bc4aea5 (patch) | |
tree | 67c3ac385c01c42a0893c34ebd7e9e7d40615a3d /resources/tools | |
parent | 1070f86debd7e6ab221f2d81b6e0f1c40acea3ff (diff) |
Report: Add dpdk icx static content
Change-Id: I79f1d70a3395551cfff872bd1d66ee900b9129b8
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit 9af72734b4ff4cc239e69e8f787228e68d02501c)
Diffstat (limited to 'resources/tools')
-rw-r--r-- | resources/tools/presentation/generator_tables.py | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 59250d0678..a7b1500f29 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -489,17 +489,10 @@ def table_merged_details(table, input_data): separator = u"" if table[u'output-file'].endswith(u"/") else u"_" file_name = f"{table[u'output-file']}{separator}{suite_name}.csv" logging.info(f" Writing file: {file_name}") - try: - with open(file_name, u"wt") as file_handler: - file_handler.write(u",".join(header) + u"\n") - for item in table_lst: - file_handler.write(u",".join(item) + u"\n") - except Exception as err: - logging.error(f"{err}") - logging.info(header) - logging.info(table_lst) - if file_handler: - file_handler.close() + with open(file_name, u"wt") as file_handler: + file_handler.write(u",".join(header) + u"\n") + for item in table_lst: + file_handler.write(u",".join(item) + u"\n") logging.info(u" Done.") |