[blivet:rhel7/master 4/4] Filesystem labeling tests will not run without utilities (#1065422)
mulhern
amulhern at redhat.com
Tue Feb 18 16:28:19 UTC 2014
Resolves: rhbz#1065422
Check that utilities are available before trying to run tests that use them.
Do this check in the setUp() method of the base class.
Signed-off-by: mulhern <amulhern at redhat.com>
---
tests/formats_test/fslabeling.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/formats_test/fslabeling.py b/tests/formats_test/fslabeling.py
index 119f6e2..0babedf 100644
--- a/tests/formats_test/fslabeling.py
+++ b/tests/formats_test/fslabeling.py
@@ -14,6 +14,12 @@ class LabelingAsRoot(baseclass.DevicelibsTestCase):
set and where the filesystem can not be relabeled.
"""
+ def setUp(self):
+ an_fs = self._fs_class()
+ if not an_fs.utilsAvailable:
+ self.skipTest("utilities unavailable for filesystem %s" % an_fs.name)
+ super(LabelingAsRoot, self).setUp()
+
def testLabeling(self):
"""A sequence of tests of filesystem labeling.
--
1.8.3.1
More information about the anaconda-patches
mailing list