diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2013-03-22 10:14:48 +0000 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2013-03-22 10:14:48 +0000 |
| commit | f689e1cb5cfe9b43b3e2fec0e28b1ce80a0cccae (patch) | |
| tree | de1ec443f0daf7a01dadf25ac54f52ee7947efa3 /openstack | |
| parent | bf70726d4228ebf3e65aa75b8f0ca6cab5e1e159 (diff) | |
| download | oslo-f689e1cb5cfe9b43b3e2fec0e28b1ce80a0cccae.tar.gz oslo-f689e1cb5cfe9b43b3e2fec0e28b1ce80a0cccae.tar.xz oslo-f689e1cb5cfe9b43b3e2fec0e28b1ce80a0cccae.zip | |
lockutils: improve the external locks test
Use a separate directory for the lockutils external locks and for the
test's flocks which are used to check that serialization is actually
occurring. By using the same directory, we can't test the code in
lockutils which auto-creates this directory because the dir gets
deleted by a process by lockutils cleanup while another directory
is using it for flocks.
Also, assume the the handles directory has been created in the parent
rather than having each child attempt to create it.
Related, add a try/finally block so that when a child process throws an
exception it immediately exits rather than deleting the temporary
directories created by the parent.
Change-Id: I32d7e8e05fb3f22cf38fa586f8bc97646c83f182
Diffstat (limited to 'openstack')
0 files changed, 0 insertions, 0 deletions
