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)
"""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 = []
cls._captures = []
@classmethod
- def create_pg_interfaces(cls, interfaces):
+ def create_pg_interfaces(cls, interfaces, gso=0, gso_size=0):
"""
Create packet-generator interfaces.
"""
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