Browse files

Move all temporary files into a single /tmp subdir.

Also setup a temporary homedir to prevent interactions with
user configuration.

This fixes bug 1088761.

Change-Id: I31f1b839593351648cd7b4fb9371562c1348fafc
  • Loading branch information...
1 parent fcedc02 commit 371acf43ff0d02267f7586f60cb44e062d2d70e3 @rbtcollins rbtcollins committed Dec 11, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 nova/test.py
View
2 nova/test.py
@@ -188,6 +188,8 @@ class TestCase(testtools.TestCase):
def setUp(self):
"""Run before each test method to initialize test environment."""
super(TestCase, self).setUp()
+ self.useFixture(fixtures.NestedTempfile())
+ self.useFixture(fixtures.TempHomeDir())
self.log_fixture = self.useFixture(fixtures.FakeLogger('nova'))
self.useFixture(conf_fixture.ConfFixture(CONF))

0 comments on commit 371acf4

Please sign in to comment.