Expose StandardLogging fixture for use

This will allow any tests to access self.stdlog.logger.output to see
what was logged.

Change-Id: I8855b10d57c067e06eccc887dea9a9e0e57dcb4c
(cherry picked from commit 7e7bdb198e)
This commit is contained in:
Sean Dague 2017-04-27 11:32:02 -04:00 committed by Shane Peters
parent 720611893b
commit 0adb6ec82a
1 changed files with 2 additions and 1 deletions

View File

@ -199,7 +199,8 @@ class TestCase(testtools.TestCase):
self.useFixture(nova_fixtures.OutputStreamCapture())
self.useFixture(nova_fixtures.StandardLogging())
self.stdlog = nova_fixtures.StandardLogging()
self.useFixture(self.stdlog)
# NOTE(sdague): because of the way we were using the lock
# wrapper we ended up with a lot of tests that started