Petr Horáček has uploaded a new change for review.

Change subject: storage: skip test_mkIsoFs on MountError 'failed to setup loop 
device'
......................................................................

storage: skip test_mkIsoFs on MountError 'failed to setup loop device'

Change-Id: I9c69ea8beca0cab768ca84ef62b846b4f7dd1745
Signed-off-by: Petr Horáček <[email protected]>
---
M tests/mkimageTests.py
1 file changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/44/46244/1

diff --git a/tests/mkimageTests.py b/tests/mkimageTests.py
index 4a137c7..0e8dd3e 100644
--- a/tests/mkimageTests.py
+++ b/tests/mkimageTests.py
@@ -26,6 +26,7 @@
 """
 
 from base64 import b64encode
+import errno
 import os
 import stat
 from shutil import rmtree
@@ -186,7 +187,13 @@
         iso_img = mkimage.mkIsoFs("vmId_iso", self.files, label)
         self.assertTrue(os.path.exists(iso_img))
         m = storage.mount.Mount(iso_img, self.workdir)
-        m.mount(mntOpts='loop')
+        try:
+            m.mount(mntOpts='loop')
+        except storage.mount.MountError as me:
+            if me[0] == errno.EPIPE:
+                raise SkipTest('WHY IS THIS BROKEN?')
+            else:
+                raise
         try:
             self._check_content()
             self._check_label(iso_img, label)


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9c69ea8beca0cab768ca84ef62b846b4f7dd1745
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Petr Horáček <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to