fullstack: Actually run ovsfw tests

super(...).setUp() must be called before OVSVersionChecker so that
rootwrap gets configured first.

Change-Id: Ie152f64a598a68566e36a4903017132e03eb35a6
Closes-bug: #1709547
This commit is contained in:
IWAMOTO Toshihiro 2017-08-10 16:28:59 +09:00
parent 90098180fa
commit 6d5dc8677b

View File

@ -43,10 +43,6 @@ class BaseSecurityGroupsSameNetworkTest(base.BaseFullStackTestCase):
ovsdb_interface = None
def setUp(self):
if (self.firewall_driver == 'openvswitch' and
not OVSVersionChecker.supports_ovsfirewall()):
self.skipTest("Open vSwitch firewall_driver doesn't work "
"with this version of ovs.")
host_descriptions = [
environment.HostDescription(
of_interface=self.of_interface,
@ -60,6 +56,11 @@ class BaseSecurityGroupsSameNetworkTest(base.BaseFullStackTestCase):
host_descriptions)
super(BaseSecurityGroupsSameNetworkTest, self).setUp(env)
if (self.firewall_driver == 'openvswitch' and
not OVSVersionChecker.supports_ovsfirewall()):
self.skipTest("Open vSwitch firewall_driver doesn't work "
"with this version of ovs.")
def assert_connection(self, *args, **kwargs):
netcat = net_helpers.NetcatTester(*args, **kwargs)
try: