]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use tempdir for lock_path in tests.
authorjohn-griffith <john.griffith@solidfire.com>
Mon, 7 Jan 2013 17:08:16 +0000 (10:08 -0700)
committerjohn-griffith <john.griffith@solidfire.com>
Mon, 7 Jan 2013 17:12:41 +0000 (10:12 -0700)
commitc6f7f1920e52ff3d44ab16e1fe77b895b5a4ab16
treee4d60772f100c944730e435c65c5f64678f796d8
parent9c294087e4cebf04bc87b32ffd3afdf8f91a2436
Use tempdir for lock_path in tests.

Commit: 2331d3336a6adf4fc13a3b187e91a5d1b1f7c723
introduced use of lockutils but wasn't setting a lock_path, in the tests.
As a result we were polluting cinder/openstack/ with cinder-xxxx lockfiles.

This patch adds a tempfile and cleanup to the test so we don't leave any
junk behind.

Change-Id: Idd9fee928ff0fcf3f8d1c30ee88c5306b88e290c
cinder/tests/api/contrib/test_admin_actions.py