Change in vdsm[ovirt-3.6]: tests: Fix loop device leak in mount tests

fromani at redhat.com fromani at redhat.com
Tue Feb 16 09:35:36 UTC 2016


Francesco Romani has submitted this change and it was merged.

Change subject: tests: Fix loop device leak in mount tests
......................................................................


tests: Fix loop device leak in mount tests

We used to unmount loop devices without using force=True and
freeloop=True. This may lead to loop device leak, failing the later
tests trying to mount loop devices. We also did not wait for udev events
when unmounting a loop device, which is asynchronous operation.

Both issues were fixed long time ago (commit dbfdc90) in the mkimageTests.
Apply the same fix for mount tests.

Change-Id: Iada8f3d962778c53ada4a6f0a7f3e75b80c07239
Signed-off-by: Nir Soffer <nsoffer at redhat.com>
Reviewed-on: https://gerrit.ovirt.org/51614
Continuous-Integration: Jenkins CI
Reviewed-by: Fabian Deutsch <fabiand at redhat.com>
Reviewed-by: Edward Haas <edwardh at redhat.com>
Reviewed-by: Dan Kenigsberg <danken at redhat.com>
Reviewed-on: https://gerrit.ovirt.org/53561
Reviewed-by: Francesco Romani <fromani at redhat.com>
---
M tests/mountTests.py
1 file changed, 11 insertions(+), 2 deletions(-)

Approvals:
  Nir Soffer: Verified
  Jenkins CI: Passed CI tests
  Francesco Romani: Looks good to me, approved



-- 
To view, visit https://gerrit.ovirt.org/53561
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iada8f3d962778c53ada4a6f0a7f3e75b80c07239
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.6
Gerrit-Owner: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>


More information about the vdsm-patches mailing list