diff options
Diffstat (limited to 'test/framework.py')
-rw-r--r-- | test/framework.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/framework.py b/test/framework.py index dce477d16d2..004d2f62f49 100644 --- a/test/framework.py +++ b/test/framework.py @@ -1017,9 +1017,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): |