X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fframework.py;h=22a4dd8757139882eb9dead33347af48711284c5;hb=4f33c80c5de96fccc15a91135099ee437f75f252;hp=dce477d16d2fc4a0567c41e35d09ead7cc8315eb;hpb=192b13f96d6b4d1b4cbbb64a3d447329bf2ba900;p=vpp.git diff --git a/test/framework.py b/test/framework.py index dce477d16d2..22a4dd87571 100644 --- a/test/framework.py +++ b/test/framework.py @@ -316,6 +316,7 @@ class VppTestCase(unittest.TestCase): "main-core", str(cpu_core_number), "}", "statseg", "{", "socket-name", cls.stats_sock, "}", "plugins", "{", "plugin", "dpdk_plugin.so", "{", "disable", + "}", "plugin", "rdma_plugin.so", "{", "disable", "}", "plugin", "unittest_plugin.so", "{", "enable", "}"] + cls.extra_vpp_plugin_config + ["}", ] if cls.extra_vpp_punt_config is not None: @@ -1017,9 +1018,11 @@ class VppTestCase(unittest.TestCase): i.assert_nothing_captured(remark=remark) timeout = 0.1 - def send_and_expect(self, intf, pkts, output): + def send_and_expect(self, intf, pkts, output, n_rx=None): + if not n_rx: + n_rx = len(pkts) self.pg_send(intf, pkts) - rx = output.get_capture(len(pkts)) + rx = output.get_capture(n_rx) return rx def send_and_expect_only(self, intf, pkts, output, timeout=None):