X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=59250d067835cc8d3446e0c3b2e97e473477db81;hb=1070f86debd7e6ab221f2d81b6e0f1c40acea3ff;hp=2e7d3dee363cd2126a463d277e14ce99ca7530be;hpb=18f2763797ff782f9068550fc2f01cad4d7056af;p=csit.git diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 2e7d3dee36..59250d0678 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -489,10 +489,17 @@ 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}") - 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") + 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() logging.info(u" Done.") @@ -1135,17 +1142,20 @@ def _generate_url(testbed, test_name): elif u"2t1c" in test_name or \ (u"-1c-" in test_name and testbed in - (u"2n-skx", u"3n-skx", u"2n-clx", u"2n-zn2", u"2n-aws", u"3n-aws")): + (u"2n-icx", u"3n-icx", u"2n-skx", u"3n-skx", u"2n-clx", u"2n-zn2", + u"2n-aws", u"3n-aws")): cores = u"2t1c" elif u"4t2c" in test_name or \ (u"-2c-" in test_name and testbed in - (u"2n-skx", u"3n-skx", u"2n-clx", u"2n-zn2", u"2n-aws", u"3n-aws")): + (u"2n-icx", u"3n-icx", u"2n-skx", u"3n-skx", u"2n-clx", u"2n-zn2", + u"2n-aws", u"3n-aws")): cores = u"4t2c" elif u"8t4c" in test_name or \ (u"-4c-" in test_name and testbed in - (u"2n-skx", u"3n-skx", u"2n-clx", u"2n-zn2", u"2n-aws", u"3n-aws")): + (u"2n-icx", u"3n-icx", u"2n-skx", u"3n-skx", u"2n-clx", u"2n-zn2", + u"2n-aws", u"3n-aws")): cores = u"8t4c" else: cores = u""