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 ed1e701fd3

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):