From 84a701c981de7b140319a0da2e62bc0ac4674431 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Wed, 25 Nov 2020 16:46:13 +0100 Subject: [PATCH] Fix skip of faults OVN agents tests when there is no OVN in env Faults tests related to the OVN agents should be skipped in case when Tobiko is run on the env without OVN, like e.g. ML2/OVS. It wasn't skipped because super() method of the OVN test cases class was called after some method which was looking for container name. Now it is called in correct order and tests are skipped properly. Change-Id: I0616169f91cb8ec1431ac91d34c1b2b20466f85a --- tobiko/tests/faults/neutron/test_agents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tobiko/tests/faults/neutron/test_agents.py b/tobiko/tests/faults/neutron/test_agents.py index ffc1a0fcf..1e9b387b6 100644 --- a/tobiko/tests/faults/neutron/test_agents.py +++ b/tobiko/tests/faults/neutron/test_agents.py @@ -516,8 +516,8 @@ class OvnControllerTest(BaseAgentTest): stack = tobiko.required_setup_fixture(stacks.CirrosServerStackFixture) def setUp(self): - self.get_ovn_agents_from_containers() super(OvnControllerTest, self).setUp() + self.get_ovn_agents_from_containers() def kill_ovn_controller(self, hosts: typing.Optional[typing.List[str]] = None,