From 83aa4a29dfaf9b3ba7c9ce185b4ef2651adf0c49 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 4 Dec 2020 10:15:38 +0100 Subject: [PATCH] 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). --- test/run/test_boot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/run/test_boot.py b/test/run/test_boot.py index f98ee904..8e8ffbaa 100644 --- a/test/run/test_boot.py +++ b/test/run/test_boot.py @@ -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)