X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_punt.py;h=7959b981837542836184418f5fe3aab78ac12629;hb=8d991d923b52a2692370bfa33902d29ff5d2f826;hp=d57a847ef0c3eaa635cb565f4e96688ef68fef7e;hpb=895e2f850659ccc2a644d0d955c2f4313263f106;p=vpp.git diff --git a/test/test_punt.py b/test/test_punt.py index d57a847ef0c..7959b981837 100644 --- a/test/test_punt.py +++ b/test/test_punt.py @@ -119,6 +119,14 @@ class TestPuntSocket(VppTestCase): portsCheck = dict() nr_packets = 256 + @classmethod + def setUpClass(cls): + super(TestPuntSocket, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestPuntSocket, cls).tearDownClass() + @classmethod def setUpConstants(cls): cls.extra_vpp_punt_config = [ @@ -135,6 +143,7 @@ class TestPuntSocket(VppTestCase): def tearDown(self): del self.sock_servers[:] + super(TestPuntSocket, self).tearDown() def socket_client_create(self, sock_name, id=None): thread = serverSocketThread(id, sock_name, self.portsCheck) @@ -149,6 +158,14 @@ class TestPuntSocket(VppTestCase): class TestIP4PuntSocket(TestPuntSocket): """ Punt Socket for IPv4 """ + @classmethod + def setUpClass(cls): + super(TestIP4PuntSocket, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestIP4PuntSocket, cls).tearDownClass() + def setUp(self): super(TestIP4PuntSocket, self).setUp() @@ -385,6 +402,14 @@ class TestIP4PuntSocket(TestPuntSocket): class TestIP6PuntSocket(TestPuntSocket): """ Punt Socket for IPv6""" + @classmethod + def setUpClass(cls): + super(TestIP6PuntSocket, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestIP6PuntSocket, cls).tearDownClass() + def setUp(self): super(TestIP6PuntSocket, self).setUp()