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