From ca62e7ec9d09eac2b516b3014fc4d678ac85a6db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awek=20Kap=C5=82o=C5=84ski?= Date: Sat, 15 Oct 2016 20:03:45 +0000 Subject: [PATCH] Make ovs functional tests mutually isolated Patch ports between br-int and br-tun have now got randomly generated names so two different tests shouldn't try to create ports with same name in same time. Change-Id: I6107bc3bc2e2a504e8ec5b4f0e3abaa68d51c01f Closes-Bug: #1625724 --- neutron/tests/functional/agent/test_ovs_flows.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/neutron/tests/functional/agent/test_ovs_flows.py b/neutron/tests/functional/agent/test_ovs_flows.py index be463525a2a..e3fb3a9c575 100644 --- a/neutron/tests/functional/agent/test_ovs_flows.py +++ b/neutron/tests/functional/agent/test_ovs_flows.py @@ -346,8 +346,10 @@ class OVSFlowTestCase(OVSAgentTestBase): self.br_tun.set_secure_mode() self.br_tun.setup_controllers(cfg.CONF) self.tun_p = self.br_tun.add_patch_port( - cfg.CONF.OVS.tun_peer_patch_port, - cfg.CONF.OVS.int_peer_patch_port) + common_utils.get_rand_device_name( + prefix=cfg.CONF.OVS.tun_peer_patch_port), + common_utils.get_rand_device_name( + prefix=cfg.CONF.OVS.int_peer_patch_port)) self.br_tun.setup_default_table(self.tun_p, True) def test_provision_local_vlan(self):