Skip to content

Commit

Permalink
Expose StandardLogging fixture for use
Browse files Browse the repository at this point in the history
This will allow any tests to access self.stdlog.logger.output to see
what was logged.

Change-Id: I8855b10d57c067e06eccc887dea9a9e0e57dcb4c
  • Loading branch information
sdague authored and mriedem committed Apr 27, 2017
1 parent 35eaa27 commit 7e7bdb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nova/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ def setUp(self):

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
Expand Down

0 comments on commit 7e7bdb1

Please sign in to comment.