log: don't create foo.log

test_tempest_set_log_file was calling tempest_set_log_file and never
resetting this value. That caused some other test to create foo.log
and not clean it up.

Change-Id: I23efe8fb89531752b01bdf9c0fbdc39c77058a51
This commit is contained in:
Alexis Lee 2016-05-26 15:42:25 +01:00
parent 6a36cffd9f
commit 2a147c54a2
1 changed files with 1 additions and 0 deletions

View File

@ -800,6 +800,7 @@ class SetDefaultsTestCase(BaseTestCase):
def test_tempest_set_log_file(self):
log_file = 'foo.log'
log.tempest_set_log_file(log_file)
self.addCleanup(log.tempest_set_log_file, None)
log.set_defaults()
self.conf([])
self.assertEqual(log_file, self.conf.log_file)