X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_vapi.py;h=7bb815d77f3069efcc693cb6abc55a7939962171;hb=ecd1fc7dfa6a36d1774f71093380b3548a22346b;hp=35fb8e795b377d304a19f67970143f4853156c21;hpb=b8c72a4a8d8bd330ab62dc0c9461cac2b137575b;p=vpp.git diff --git a/test/test_vapi.py b/test/test_vapi.py index 35fb8e795b3..7bb815d77f3 100644 --- a/test/test_vapi.py +++ b/test/test_vapi.py @@ -8,10 +8,18 @@ from framework import VppTestCase, running_extended_tests, \ running_on_centos, VppTestRunner, Worker -@unittest.skipUnless(running_extended_tests(), "part of extended tests") +@unittest.skipUnless(running_extended_tests, "part of extended tests") class VAPITestCase(VppTestCase): """ VAPI test """ + @classmethod + def setUpClass(cls): + super(VAPITestCase, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(VAPITestCase, cls).tearDownClass() + def test_vapi_c(self): """ run C VAPI tests """ var = "TEST_DIR" @@ -41,7 +49,7 @@ class VAPITestCase(VppTestCase): "Timeout! Worker did not finish in %ss" % timeout) self.assert_equal(worker.result, 0, "Binary test return code") - @unittest.skipIf(running_on_centos(), "Centos's gcc can't compile our C++") + @unittest.skipIf(running_on_centos, "Centos's gcc can't compile our C++") def test_vapi_cpp(self): """ run C++ VAPI tests """ var = "TEST_DIR"