diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-08-16 16:51:04 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-08-17 17:26:42 +0000 |
| commit | 10e25db4befe1173af516a053ac01f0f7b6dac56 (patch) | |
| tree | 98aa0ac0378e7cbc60d6c7fef4f37a927f5cdbc6 /nova/openstack | |
| parent | 740ebdce965d4d2ebe1050fe4de2b84d7726922f (diff) | |
Makes sure tests don't leave lockfiles around
Our new lockfile code works fine if the locks already exist, but
it is annoying to pollute the source tree with lockfiles in the
tests.
This modifies the lockfile code slightly to use a tempdir if
lock_path is none. Note that a tempdir will not work in production
but it is fine for testing. We set the lock_path to None in the
testing flags.
Also removes the explicit cleanup in run_tests.sh. The new solution
works with tox and will work even if we add new locks.
Fixes bug 1035426
Change-Id: I613926e4288442e79df50ea5f5bd8f9eafdfe7e7
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
