summaryrefslogtreecommitdiffstats
path: root/test/test_l2bd.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_l2bd.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_l2bd.py')
-rw-r--r--test/test_l2bd.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_l2bd.py b/test/test_l2bd.py
index 46ba2e49c13..50720e64cd8 100644
--- a/test/test_l2bd.py
+++ b/test/test_l2bd.py
@@ -8,7 +8,7 @@ from scapy.layers.l2 import Ether, Dot1Q
from scapy.layers.inet import IP, UDP
from framework import VppTestCase, VppTestRunner
-from util import Host
+from util import Host, ppp
from vpp_sub_interface import VppDot1QSubint, VppDot1ADSubint
@@ -109,7 +109,7 @@ class TestL2bd(VppTestCase):
if not self.vpp_dead:
self.logger.info(self.vapi.ppcli("show l2fib verbose"))
self.logger.info(self.vapi.ppcli("show bridge-domain %s detail" %
- self.bd_id))
+ self.bd_id))
@classmethod
def create_hosts_and_learn(cls, count):
@@ -217,8 +217,7 @@ class TestL2bd(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.pg_interfaces:
remaining_packet = self.get_next_packet_info_for_interface2(