Create bridges in ovsdb monitor functional tests
The test waits inside for output from 'ovsdb-client monitor Bridge' command but the command makes output only if there is a bridge present in ovsdb. This patch adds an OVSBridgeFixture to setup so every test case has a bridge for sure. Change-Id: I40e1c99ec956c92fa1c7763eb98f7f2ce6fcd226 Closes-Bug: 1447191
This commit is contained in:
parent
ed209643f1
commit
aa57c364de
@ -48,6 +48,8 @@ class BaseMonitorTest(linux_base.BaseOVSLinuxTestCase):
|
||||
root_helper=" ".join([functional_base.SUDO_CMD] * 2))
|
||||
|
||||
self._check_test_requirements()
|
||||
# ovsdb-client monitor needs to have a bridge to make any output
|
||||
self.useFixture(net_helpers.OVSBridgeFixture())
|
||||
|
||||
def _check_test_requirements(self):
|
||||
self.check_command(['ovsdb-client', 'list-dbs'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user