X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_vxlan.py;h=aa069dc6e7bfd373f73f2e231bd7a404ad0b24af;hb=47feb1146ec3b0e1cf2ebd83cd5211e1df261194;hp=5ded725abf632193a3964495b65204dbc456d21e;hpb=c599c6f001bc28e1023fb5e74a27db37b1aae847;p=vpp.git diff --git a/test/test_vxlan.py b/test/test_vxlan.py index 5ded725abf6..aa069dc6e7b 100644 --- a/test/test_vxlan.py +++ b/test/test_vxlan.py @@ -217,6 +217,10 @@ class TestVxlan(BridgeDomain, VppTestCase): super(TestVxlan, cls).tearDownClass() raise + @classmethod + def tearDownClass(cls): + super(TestVxlan, cls).tearDownClass() + def test_encap_big_packet(self): """ Encapsulation test send big frame from pg1 Verify receipt of encapsulated frames on pg0 @@ -251,11 +255,12 @@ class TestVxlan(BridgeDomain, VppTestCase): # @param self The object pointer. def tearDown(self): super(TestVxlan, self).tearDown() - if not self.vpp_dead: - self.logger.info(self.vapi.cli("show bridge-domain 1 detail")) - self.logger.info(self.vapi.cli("show bridge-domain 2 detail")) - self.logger.info(self.vapi.cli("show bridge-domain 3 detail")) - self.logger.info(self.vapi.cli("show vxlan tunnel")) + + def show_commands_at_teardown(self): + self.logger.info(self.vapi.cli("show bridge-domain 1 detail")) + self.logger.info(self.vapi.cli("show bridge-domain 2 detail")) + self.logger.info(self.vapi.cli("show bridge-domain 3 detail")) + self.logger.info(self.vapi.cli("show vxlan tunnel")) if __name__ == '__main__':