Merge "Locking edge case when lock_path does not exist"
This commit is contained in:
commit
94d7d35467
|
@ -207,7 +207,6 @@ def synchronized(name, lock_file_prefix, external=False, lock_path=None):
|
|||
local_lock_path = tempfile.mkdtemp()
|
||||
|
||||
if not os.path.exists(local_lock_path):
|
||||
cleanup_dir = True
|
||||
fileutils.ensure_tree(local_lock_path)
|
||||
|
||||
# NOTE(mikal): the lock name cannot contain directory
|
||||
|
|
|
@ -186,8 +186,6 @@ class LockTestCase(utils.BaseTestCase):
|
|||
shutil.rmtree(lock_dir, ignore_errors=True)
|
||||
|
||||
def test_synchronized_externally_lock_dir_not_exist(self):
|
||||
self.skipTest('bug #1107950')
|
||||
|
||||
lock_dir = tempfile.mkdtemp()
|
||||
os.rmdir(lock_dir)
|
||||
self.config(lock_path=lock_dir)
|
||||
|
|
Loading…
Reference in New Issue