X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fframework.py;h=f4b168b3c75381074e6a44ff5785badcecd92759;hb=7c3275e84b64ade4e20d00e4457bd4e437b1894f;hp=02e455b1223a2874fcecf4d77864d3048f74c03c;hpb=514df6f931fb95e801c5033b114967e86113e778;p=vpp.git diff --git a/test/framework.py b/test/framework.py index 02e455b1223..f4b168b3c75 100644 --- a/test/framework.py +++ b/test/framework.py @@ -1293,7 +1293,8 @@ class VppTestCase(CPUInterface, unittest.TestCase): self.pg_enable_capture(self.pg_interfaces) self.pg_start(trace=trace) - def send_and_assert_no_replies(self, intf, pkts, remark="", timeout=None): + def send_and_assert_no_replies(self, intf, pkts, remark="", timeout=None, + trace=True): self.pg_send(intf, pkts) if not timeout: timeout = 1 @@ -1301,6 +1302,8 @@ class VppTestCase(CPUInterface, unittest.TestCase): i.get_capture(0, timeout=timeout) i.assert_nothing_captured(remark=remark) timeout = 0.1 + if trace: + self.logger.debug(self.vapi.cli("show trace")) def send_and_expect(self, intf, pkts, output, n_rx=None, worker=None, trace=True):