From: Ben Nemec Date: Wed, 7 Aug 2013 15:54:34 +0000 (-0500) Subject: Set lock_path in tests X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=7d9e0dead3f668f5ad3e663cd342f3c2c3af9a5d;p=openstack-build%2Fcinder-build.git Set lock_path in tests This is required to sync a locking fix from Oslo. Change-Id: I1f71d7137eab2509a24c5e1397da653142561f10 Related-Bug: 1065531 --- 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."""