[blivet:rhel7/master 4/4] Skip lvm test case with an informative message

mulhern amulhern at redhat.com
Fri Mar 21 19:29:45 UTC 2014


Just now, our test case needs a fairly recent version of lvm2 to run, which
isn't available on my desktop.

This isn't a problem for blivet itself, just the for the unit test.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 tests/devicelibs_test/lvm_test.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/devicelibs_test/lvm_test.py b/tests/devicelibs_test/lvm_test.py
index 03700ae..b7d6b6d 100755
--- a/tests/devicelibs_test/lvm_test.py
+++ b/tests/devicelibs_test/lvm_test.py
@@ -67,6 +67,7 @@ class LVMAsRootTestCase(baseclass.DevicelibsTestCase):
         super(LVMAsRootTestCase, self).tearDown()
 
     @unittest.skipUnless(os.geteuid() == 0, "requires root privileges")
+    @unittest.skipUnless(False, "you are probably running a version of lvcreate which does not accept the -y flag")
     def testLVM(self):
         _LOOP_DEV0 = self._loopMap[self._LOOP_DEVICES[0]]
         _LOOP_DEV1 = self._loopMap[self._LOOP_DEVICES[1]]
-- 
1.8.3.1



More information about the anaconda-patches mailing list