From 7e7bdb198ed6412273e22dea72e37a6371fce8bd Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 27 Apr 2017 11:32:02 -0400 Subject: [PATCH] Expose StandardLogging fixture for use This will allow any tests to access self.stdlog.logger.output to see what was logged. Change-Id: I8855b10d57c067e06eccc887dea9a9e0e57dcb4c --- nova/test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nova/test.py b/nova/test.py index ab027fb51a..749adbd78d 100644 --- a/nova/test.py +++ b/nova/test.py @@ -200,7 +200,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