tests: send packet output to log - test_punt.py 15/20215/6
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Tue, 18 Jun 2019 15:05:38 +0000 (11:05 -0400)
committerNeale Ranns <nranns@cisco.com>
Wed, 19 Jun 2019 07:57:32 +0000 (07:57 +0000)
Move output to log.txt.
11:51:58,111 Verifying against 3 packets in verify_udp_pkts.
11:51:58,111 ###[ Ethernet ]###
  dst       = 02:fe:4c:62:06:e5
  src       = 02:01:00:00:ff:02
  type      = 0x800
\###[ IP ]###
     version   = 4
     ihl       = 5
     tos       = 0x0
     len       = 128
...

Type: test

Change-Id: Iebaf34c2ac16e7fa8dffbdeadf18ab6c5f4c7494
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
test/test_punt.py

index e7ac4dd..b305e08 100644 (file)
@@ -141,7 +141,6 @@ class TestPuntSocket(VppTestCase):
     def verify_udp_pkts(self, rxs, n_rx, port):
         n_match = 0
         for rx in rxs:
-            rx.show()
             self.assertTrue(rx.haslayer(UDP))
             if rx[UDP].dport == port:
                 n_match += 1