neil / rpms / python-blivet

Forked from rpms/python-blivet a year ago
Clone

Blame SOURCES/0003-Skip-test_mounting-for-filesystems-that-are-not-moun.patch

198823
From 760f08bbf7b801acd393a6d2b7447ca6ff28d590 Mon Sep 17 00:00:00 2001
198823
From: Vojtech Trefny <vtrefny@redhat.com>
198823
Date: Fri, 22 May 2020 12:35:11 +0200
198823
Subject: [PATCH] Skip test_mounting for filesystems that are not mountable
198823
198823
We can have tools to create the filesystem without having kernel
198823
module for mounting it.
198823
---
198823
 tests/formats_test/fstesting.py | 4 ++--
198823
 1 file changed, 2 insertions(+), 2 deletions(-)
198823
198823
diff --git a/tests/formats_test/fstesting.py b/tests/formats_test/fstesting.py
198823
index aa1b42e5..62f806f9 100644
198823
--- a/tests/formats_test/fstesting.py
198823
+++ b/tests/formats_test/fstesting.py
198823
@@ -156,8 +156,8 @@ class FSAsRoot(loopbackedtestcase.LoopBackedTestCase):
198823
         # FIXME: BTRFS fails to mount
198823
         if isinstance(an_fs, fs.BTRFS):
198823
             self.skipTest("no mounting filesystem %s" % an_fs.name)
198823
-        if not an_fs.formattable:
198823
-            self.skipTest("can not create filesystem %s" % an_fs.name)
198823
+        if not an_fs.formattable or not an_fs.mountable:
198823
+            self.skipTest("can not create or mount filesystem %s" % an_fs.name)
198823
         an_fs.device = self.loop_devices[0]
198823
         self.assertIsNone(an_fs.create())
198823
         self.assertTrue(an_fs.test_mount())
198823
-- 
198823
2.25.4
198823