Change in vdsm[master]: tests: Add missing test for deleted mounts
nsoffer at redhat.com
nsoffer at redhat.com
Sun Apr 24 23:43:10 UTC 2016
Nir Soffer has uploaded a new change for review.
Change subject: tests: Add missing test for deleted mounts
......................................................................
tests: Add missing test for deleted mounts
Mount path may have a (deleted) suffix - we strip this suffix when
parsing /proc/mounts output so the path is still considered as mounted.
This patch adds the missing test before refactoring the relevant code.
Change-Id: Id280a9e8e3d6db273eb3398dd38e4553750c4631
Signed-off-by: Nir Soffer <nsoffer at redhat.com>
---
M tests/mountTests.py
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/47/56547/1
diff --git a/tests/mountTests.py b/tests/mountTests.py
index 3cb1698..945b89b 100644
--- a/tests/mountTests.py
+++ b/tests/mountTests.py
@@ -190,6 +190,13 @@
self.assertTrue(mount.isMounted(
b"/rhev/data-center/mnt/server:_path"))
+ def test_is_mounted_deleted(self):
+ with fake_mounts([b"server:/path "
+ b"/rhev/data-center/mnt/server:_path (deleted)"
+ b"nfs4 defaults 0 0"]):
+ self.assertTrue(mount.isMounted(
+ b"/rhev/data-center/mnt/server:_path"))
+
def test_is_not_mounted(self):
with fake_mounts([b"server:/path "
b"/rhev/data-center/mnt/server:_path "
--
To view, visit https://gerrit.ovirt.org/56547
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id280a9e8e3d6db273eb3398dd38e4553750c4631
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsoffer at redhat.com>
More information about the vdsm-patches
mailing list