Merge "Config lockutils to use a temp path for tests."

This commit is contained in:
Jenkins 2013-01-17 19:45:41 +00:00 committed by Gerrit Code Review
commit c13eff55be
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ from quantum.openstack.common import cfg
reldir = os.path.join(os.path.dirname(__file__), '..', '..', '..')
absdir = os.path.abspath(reldir)
cfg.CONF.state_path = absdir
# An empty lock path forces lockutils.synchronized to use a temporary
# location for lock files that will be cleaned up automatically.
cfg.CONF.lock_path = ''
class BaseTest(unittest.TestCase):