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
Jakub Libosvar 2015-04-22 16:47:33 +02:00
parent ed209643f1
commit aa57c364de
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ class BaseMonitorTest(linux_base.BaseOVSLinuxTestCase):
root_helper=" ".join([functional_base.SUDO_CMD] * 2))
# ovsdb-client monitor needs to have a bridge to make any output
def _check_test_requirements(self):
self.check_command(['ovsdb-client', 'list-dbs'],