Merge "Config lockutils to use a temp path for tests."
This commit is contained in:
commit
ed1e701fd3
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user