From a4b5aad7db369e5bfedacd5ffd3188ff22945141 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Tue, 18 Dec 2012 16:14:25 +1300 Subject: Reset the IPv6 API backend when resetting the conf stack. This fixes test isolation errors where tests were running with the wrong ipv6 backend and failing. The failures occured because Python discovers tests in filesystem order rather than a sorted order, and the test that was changing the backend had previously always run later under nose, which does not use filesystem order. Change-Id: Ife4370d0747b269c9bc9aabb50c531cb6c9fec13 --- nova/tests/conf_fixture.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nova') diff --git a/nova/tests/conf_fixture.py b/nova/tests/conf_fixture.py index fa7ecebf4..0ff333dd1 100644 --- a/nova/tests/conf_fixture.py +++ b/nova/tests/conf_fixture.py @@ -19,6 +19,7 @@ import fixtures from nova import config +from nova import ipv6 from nova.openstack.common import cfg from nova.tests.utils import cleanup_dns_managers @@ -67,3 +68,4 @@ class ConfFixture(fixtures.Fixture): config.parse_args([], default_config_files=[]) self.addCleanup(self.conf.reset) self.addCleanup(cleanup_dns_managers) + self.addCleanup(ipv6.api.reset_backend) -- cgit