From 7d9e0dead3f668f5ad3e663cd342f3c2c3af9a5d Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Wed, 7 Aug 2013 10:54:34 -0500 Subject: [PATCH] Set lock_path in tests This is required to sync a locking fix from Oslo. Change-Id: I1f71d7137eab2509a24c5e1397da653142561f10 Related-Bug: 1065531 --- cinder/test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cinder/test.py b/cinder/test.py index 5239d13d6..9d58c7ee5 100644 --- a/cinder/test.py +++ b/cinder/test.py @@ -27,6 +27,7 @@ inline callbacks. import functools import os import shutil +import tempfile import uuid import fixtures @@ -168,6 +169,8 @@ class TestCase(testtools.TestCase): self._services = [] CONF.set_override('fatal_exception_format_errors', True) + # This will be cleaned up by the NestedTempfile fixture + CONF.set_override('lock_path', tempfile.mkdtemp()) def tearDown(self): """Runs after each test method to tear down test environment.""" -- 2.45.2