Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
dhcp: disable extraneous vlib_log spew
[vpp.git]
/
test
/
test_ping.py
diff --git
a/test/test_ping.py
b/test/test_ping.py
index
4f3921e
..
87cb45c
100644
(file)
--- a/
test/test_ping.py
+++ b/
test/test_ping.py
@@
-36,17
+36,22
@@
class TestPing(VppTestCase):
super(TestPing, cls).tearDownClass()
raise
super(TestPing, cls).tearDownClass()
raise
+ @classmethod
+ def tearDownClass(cls):
+ super(TestPing, cls).tearDownClass()
+
def tearDown(self):
super(TestPing, self).tearDown()
def tearDown(self):
super(TestPing, self).tearDown()
- if not self.vpp_dead:
- self.vapi.cli("show hardware")
+
+ def show_commands_at_teardown(self):
+ self.logger.info(self.vapi.cli("show hardware"))
def test_ping_basic(self):
""" basic ping test """
try:
self.pg_enable_capture(self.pg_interfaces)
self.pg_start()
def test_ping_basic(self):
""" basic ping test """
try:
self.pg_enable_capture(self.pg_interfaces)
self.pg_start()
- self.logger.info(self.vapi.cli("show ip
arp
"))
+ self.logger.info(self.vapi.cli("show ip
4 neighbors
"))
self.logger.info(self.vapi.cli("show ip6 neighbors"))
remote_ip4 = self.pg1.remote_ip4
self.logger.info(self.vapi.cli("show ip6 neighbors"))
remote_ip4 = self.pg1.remote_ip4
@@
-82,8
+87,7
@@
class TestPing(VppTestCase):
try:
self.pg_enable_capture(self.pg_interfaces)
self.pg_start()
try:
self.pg_enable_capture(self.pg_interfaces)
self.pg_start()
- self.logger.info(self.vapi.cli("show ip arp"))
- self.logger.info(self.vapi.cli("show ip6 neighbors"))
+ self.logger.info(self.vapi.cli("show ip neighbors"))
remote_ip4 = self.pg1.remote_ip4
ping_cmd = "ping " + remote_ip4 + " interval 0.01 burst 3"
remote_ip4 = self.pg1.remote_ip4
ping_cmd = "ping " + remote_ip4 + " interval 0.01 burst 3"