X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2Fautogen%2FRegenerator.py;h=64bcea917d75935be797e5873cc0210b1278ee4d;hp=1c265c3f3c5935e515c99ee1176c0cba61d80fa4;hb=d1589ad74e515757fb12cf8a5f976282924afe13;hpb=8de6fce0a2974ea44d4817e81e54ce2ca31ca45e diff --git a/resources/libraries/python/autogen/Regenerator.py b/resources/libraries/python/autogen/Regenerator.py index 1c265c3f3c..64bcea917d 100644 --- a/resources/libraries/python/autogen/Regenerator.py +++ b/resources/libraries/python/autogen/Regenerator.py @@ -60,6 +60,7 @@ class Regenerator(object): "ip6": 78, "vxlan+ip4": 114 # What is the real minimum for latency stream? } + min_framesize_values = protocol_to_min_framesize.values() def get_iface_and_suite_id(filename): """Get interface and suite ID. @@ -94,15 +95,30 @@ class Regenerator(object): :rtype: int """ # TODO: Is there a better way to disable some combinations? - if kwargs["framesize"] == 9000 and "vic1227" in iface: - # Not supported in HW. - pass - else if kwargs["framesize"] == 9000 and "avf" in suite_id: - # Not supported by AVF driver. - # https://git.fd.io/vpp/tree/src/plugins/avf/README.md - pass - else: + emit = True + if kwargs["framesize"] == 9000: + if "vic1227" in iface: + # Not supported in HW. + emit = False + if "avf" in suite_id: + # Not supported by AVF driver. + # https://git.fd.io/vpp/tree/src/plugins/avf/README.md + emit = False + if "-16vm-" in suite_id or "-16dcr-" in suite_id: + if kwargs["phy_cores"] > 3: + # CSIT lab only has 28 (physical) core processors, + # so these test would fail when attempting to assign cores. + emit = False + if "soak" in suite_id: + # Soak test take too long, do not risk other than tc01. + if kwargs["phy_cores"] != 1: + emit = False + if kwargs["framesize"] not in min_framesize_values: + emit = False + if emit: file_out.write(testcase.generate(num=num, **kwargs)) + # We bump tc number in any case, so that future enables/disables + # do not affect the numbering of other test cases. return num + 1 def add_testcases(testcase, iface, suite_id, file_out, tc_kwargs_list):