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

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