summaryrefslogtreecommitdiffstats
path: root/test/framework.py
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-03-28 08:56:10 +0000
committerDamjan Marion <dmarion@me.com>2019-03-29 11:10:33 +0000
commitd7603d97e046d59aba6864b208c181b39fc72b52 (patch)
treeae68418e3987cf2e849df482e3aa3563f42b8f1c /test/framework.py
parent74b7437bd118e104f50831f8a8f3cc8d10aa2530 (diff)
IPSEC: tunnel fragmentation
Change-Id: I63741a22bc82f5f861e1c0f26a93b5569cc52061 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/framework.py')
-rw-r--r--test/framework.py6
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):