boom-boot/SOURCES/0008-tests-skip-add-del-and...

24 lines
815 B
Diff

tests/command_tests.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/command_tests.py b/tests/command_tests.py
index fee6a33..b85b7dd 100644
--- a/tests/command_tests.py
+++ b/tests/command_tests.py
@@ -519,6 +519,7 @@ class CommandTests(unittest.TestCase):
be.delete_entry()
self.assertFalse(exists(be._entry_path))
+ @unittest.skipIf(not have_root_lv(), "requires root LV")
def test_clone_entry_del_opts_and_re_add(self):
# Fedora 24 (Workstation Edition)
@@ -537,6 +538,7 @@ class CommandTests(unittest.TestCase):
# Assert it's back
self.assertTrue("rhgb quiet" in be2.options)
+ @unittest.skipIf(not have_root_lv(), "requires root LV")
def test_clone_entry_add_opts_and_re_del(self):
# Fedora 24 (Workstation Edition)