Merge "set api.extensions logging to ERROR in unit tests"

This commit is contained in:
Jenkins 2014-04-08 19:50:35 +00:00 committed by Gerrit Code Review
commit 2c02202ce4

View File

@ -96,6 +96,15 @@ class BaseTestCase(testtools.TestCase):
nuke_handlers=capture_logs,
))
# suppress all but errors here
self.useFixture(
fixtures.FakeLogger(
name='neutron.api.extensions',
format=LOG_FORMAT,
level=logging.ERROR,
nuke_handlers=capture_logs,
))
test_timeout = int(os.environ.get('OS_TEST_TIMEOUT', 0))
if test_timeout == -1:
test_timeout = 0