Skip to content

Commit

Permalink
Merge "Set OS_TEST_LOCK_PATH default value in fake_config"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Dec 31, 2017
2 parents ac6ce00 + 4778205 commit 7541031
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tempest/tests/fake_config.py
Expand Up @@ -40,10 +40,12 @@ def setUp(self):
group='identity')
self.conf.set_default('neutron', True, group='service_available')
self.conf.set_default('heat', True, group='service_available')
if not os.path.exists(str(os.environ.get('OS_TEST_LOCK_PATH'))):
os.mkdir(str(os.environ.get('OS_TEST_LOCK_PATH')))
lock_path = str(os.environ.get('OS_TEST_LOCK_PATH',
os.environ.get('TMPDIR', '/tmp')))
if not os.path.exists(lock_path):
os.mkdir(lock_path)
lockutils.set_defaults(
lock_path=str(os.environ.get('OS_TEST_LOCK_PATH')),
lock_path=lock_path,
)
self.conf.set_default('auth_version', 'v2', group='identity')
for config_option in ['username', 'password', 'project_name']:
Expand Down

0 comments on commit 7541031

Please sign in to comment.