test/stages: skip unless we can bind mount

We need to be able to bind-mount in the stages 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:15 +01:00
parent ef5875e1f4
commit 18fc8aa85e

View file

@ -31,6 +31,7 @@ def find_stage(result, stageid):
@unittest.skipUnless(test.TestBase.have_test_data(), "no test-data access")
@unittest.skipUnless(test.TestBase.have_tree_diff(), "tree-diff missing")
@unittest.skipUnless(test.TestBase.can_bind_mount(), "root-only")
class TestStages(test.TestBase):
def assertTreeDiffsEqual(self, tree_diff1, tree_diff2):