Merge "Do not create /dev/shm/designate"

This commit is contained in:
Jenkins 2016-01-26 15:21:44 +00:00 committed by Gerrit Code Review
commit d8a9357b62

View File

@ -105,10 +105,8 @@ class DatabaseFixture(fixtures.Fixture):
"""
tmpfs_path = "/dev/shm"
if os.path.isdir(tmpfs_path):
tmp_dir = os.path.join(tmpfs_path, 'designate')
if not os.path.isdir(tmp_dir):
os.mkdir(tmp_dir)
LOG.debug("Using %s as database tmp dir" % tmp_dir)
tmp_dir = tmpfs_path
LOG.debug("Using tmpfs on %s as database tmp dir" % tmp_dir)
else:
tmp_dir = "/tmp"
LOG.warning("Using %s as database tmp dir. Tests might be slow" %