test/boot: skip unless we can bind mount

We need to be able to bind-mount in the boot tests, so skip all of
those if we can't (because we are not root).
This commit is contained in:
Christian Kellner 2020-12-04 10:15:38 +01:00
parent 18fc8aa85e
commit 83aa4a29df

View file

@ -11,6 +11,7 @@ from .. import test
@unittest.skipUnless(test.TestBase.have_test_data(), "no test-data access")
@unittest.skipUnless(test.TestBase.can_bind_mount(), "root-only")
class TestBoot(test.TestBase):
def setUp(self):
self.osbuild = test.OSBuild(self)