summaryrefslogtreecommitdiffstats
path: root/test/test_l2xc.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2016-11-18 07:38:42 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-12-05 18:44:45 +0000
commit7bb873a4cc068a6cc3c9d0e1d32987c5f8003904 (patch)
tree991f04ba994779140f98bdcf44af09d63d8c69c8 /test/test_l2xc.py
parent86fb04db3ec3979f20111bf4dfa945a1fa2275d4 (diff)
make test: fix missing log/packet messages
Change-Id: Idb3119792943664748c4abc3829ad723f4156dfe Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/test_l2xc.py')
-rw-r--r--test/test_l2xc.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_l2xc.py b/test/test_l2xc.py
index 49ca99684f1..3789304247e 100644
--- a/test/test_l2xc.py
+++ b/test/test_l2xc.py
@@ -8,7 +8,7 @@ from scapy.layers.l2 import Ether
from scapy.layers.inet import IP, UDP
from framework import VppTestCase, VppTestRunner
-from util import Host
+from util import Host, ppp
class TestL2xc(VppTestCase):
@@ -169,8 +169,7 @@ class TestL2xc(VppTestCase):
self.assertEqual(udp.sport, saved_packet[UDP].sport)
self.assertEqual(udp.dport, saved_packet[UDP].dport)
except:
- self.logger.error("Unexpected or invalid packet:")
- self.logger.error(packet.show())
+ self.logger.error(ppp("Unexpected or invalid packet:", packet))
raise
for i in self.interfaces:
remaining_packet = self.get_next_packet_info_for_interface2(