Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
session: API cleanup
[vpp.git]
/
test
/
test_l2xc.py
diff --git
a/test/test_l2xc.py
b/test/test_l2xc.py
index
8be93e4
..
bc653f0
100644
(file)
--- a/
test/test_l2xc.py
+++ b/
test/test_l2xc.py
@@
-1,4
+1,4
@@
-#!/usr/bin/env python
+#!/usr/bin/env python
3
import unittest
import random
import unittest
import random
@@
-76,6
+76,10
@@
class TestL2xc(VppTestCase):
super(TestL2xc, cls).tearDownClass()
raise
super(TestL2xc, cls).tearDownClass()
raise
+ @classmethod
+ def tearDownClass(cls):
+ super(TestL2xc, cls).tearDownClass()
+
def setUp(self):
super(TestL2xc, self).setUp()
self.reset_packet_infos()
def setUp(self):
super(TestL2xc, self).setUp()
self.reset_packet_infos()
@@
-85,8
+89,9
@@
class TestL2xc(VppTestCase):
Show various debug prints after each test.
"""
super(TestL2xc, self).tearDown()
Show various debug prints after each test.
"""
super(TestL2xc, self).tearDown()
- if not self.vpp_dead:
- self.logger.info(self.vapi.ppcli("show l2patch"))
+
+ def show_commands_at_teardown(self):
+ self.logger.info(self.vapi.ppcli("show l2patch"))
@classmethod
def create_host_lists(cls, count):
@classmethod
def create_host_lists(cls, count):