X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=c2c1f00af56585fae4194a8e8404f92b1f6ed40a;hb=cd11da6d44656ffb2c6c6706ae874e8c094a114b;hp=d76c4ba2b8ff39d77333efd205f769c950c4039e;hpb=e10da8fe238ad069e6793f263d92521a65e928f8;p=csit.git diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index d76c4ba2b8..c2c1f00af5 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Cisco and/or its affiliates. +# Copyright (c) 2023 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -1146,34 +1146,25 @@ def _generate_url(testbed, test_name): frame_size = u"" if u"1t1c" in test_name or \ - (u"-1c-" in test_name and - testbed in (u"3n-hsw", u"3n-tsh", u"2n-dnv", u"3n-dnv", u"2n-tx2")): + (u"-1c-" in test_name and testbed in (u"3n-tsh", u"2n-tx2")): cores = u"1t1c" elif u"2t2c" in test_name or \ - (u"-2c-" in test_name and - testbed in (u"3n-hsw", u"3n-tsh", u"2n-dnv", u"3n-dnv", u"2n-tx2")): + (u"-2c-" in test_name and testbed in (u"3n-tsh", u"2n-tx2")): cores = u"2t2c" elif u"4t4c" in test_name or \ - (u"-4c-" in test_name and - testbed in (u"3n-hsw", u"3n-tsh", u"2n-dnv", u"3n-dnv", u"2n-tx2")): + (u"-4c-" in test_name and testbed in (u"3n-tsh", u"2n-tx2")): cores = u"4t4c" elif u"2t1c" in test_name or \ (u"-1c-" in test_name and - testbed in - (u"2n-icx", u"3n-icx", u"2n-skx", u"3n-skx", u"2n-clx", u"2n-zn2", - u"2n-aws", u"3n-aws")): + testbed in (u"2n-icx", u"3n-icx", u"2n-clx", u"2n-zn2", u"2n-aws")): cores = u"2t1c" elif u"4t2c" in test_name or \ (u"-2c-" in test_name and - testbed in - (u"2n-icx", u"3n-icx", u"2n-skx", u"3n-skx", u"2n-clx", u"2n-zn2", - u"2n-aws", u"3n-aws")): + testbed in (u"2n-icx", u"3n-icx", u"2n-clx", u"2n-zn2", u"2n-aws")): cores = u"4t2c" elif u"8t4c" in test_name or \ (u"-4c-" in test_name and - testbed in - (u"2n-icx", u"3n-icx", u"2n-skx", u"3n-skx", u"2n-clx", u"2n-zn2", - u"2n-aws", u"3n-aws")): + testbed in (u"2n-icx", u"3n-icx", u"2n-clx", u"2n-zn2", u"2n-aws")): cores = u"8t4c" else: cores = u"" @@ -1188,7 +1179,7 @@ def _generate_url(testbed, test_name): driver = u"af_xdp" elif u"rdma" in test_name: driver = u"rdma" - elif u"dnv" in testbed or u"tsh" in testbed: + elif u"tsh" in testbed: driver = u"ixgbe" elif u"ena" in test_name: driver = u"ena" @@ -2023,8 +2014,13 @@ def table_comparison(table, input_data): for itm in footnote.split("\n"): file_handler.write(f'"{itm}"\n') - tbl_tmp = list() - max_lens = [0, ] * len(tbl_cmp_lst[0]) + try: + max_lens = [0, ] * len(tbl_cmp_lst[0]) + except IndexError as err: + logging.error(f"Generator tables: {err}") + return + + tbl_tmp = list() for line in tbl_cmp_lst: row = [line[0], ] for idx, itm in enumerate(line[1:]):