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

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