X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fframework.py;h=2bfb4b2fcd9dab46cef26b893b4c72b1f3a4652b;hb=00625a64f45f1af8aef45a95cc0e1f6c05e793ed;hp=2c03b435c7126f6199ac427e25ee5c0b300a0679;hpb=0cbc71d783b9ad385e3d9efba181b75e37265318;p=vpp.git diff --git a/test/framework.py b/test/framework.py index 2c03b435c71..2bfb4b2fcd9 100644 --- a/test/framework.py +++ b/test/framework.py @@ -114,8 +114,8 @@ class VppDiedError(Exception): msg = "VPP subprocess died %sunexpectedly with return code: %d%s." % ( in_msg, self.rv, - ' [%s]' % self.signal_name if - self.signal_name is not None else '') + ' [%s]' % (self.signal_name if + self.signal_name is not None else '')) super(VppDiedError, self).__init__(msg) @@ -261,7 +261,6 @@ class VppTestCase(unittest.TestCase): """This subclass is a base class for VPP test cases that are implemented as classes. It provides methods to create and run test case. """ - get_truthy_envar = staticmethod(BoolEnvironmentVariable) extra_vpp_punt_config = [] extra_vpp_plugin_config = [] @@ -763,7 +762,7 @@ class VppTestCase(unittest.TestCase): cls._captures = [] @classmethod - def create_pg_interfaces(cls, interfaces): + def create_pg_interfaces(cls, interfaces, gso=0, gso_size=0): """ Create packet-generator interfaces. @@ -773,7 +772,7 @@ class VppTestCase(unittest.TestCase): """ result = [] for i in interfaces: - intf = VppPGInterface(cls, i) + intf = VppPGInterface(cls, i, gso, gso_size) setattr(cls, intf.name, intf) result.append(intf) cls.pg_interfaces = result @@ -974,8 +973,6 @@ class VppTestCase(unittest.TestCase): def assert_packet_checksums_valid(self, packet, ignore_zero_udp_checksums=True): received = packet.__class__(scapy.compat.raw(packet)) - self.logger.debug( - ppp("Verifying packet checksums for packet:", received)) udp_layers = ['UDP', 'UDPerror'] checksum_fields = ['cksum', 'chksum'] checksums = []