mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-apps/bubblewrap: fix tests
I'm not sure why I only see this on some of my machines. Closes: https://bugs.gentoo.org/982101 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -37,6 +37,7 @@ RDEPEND+=" selinux? ( sec-policy/selinux-bubblewrap )"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.11.2-no-werror.patch
|
||||
"${FILESDIR}"/${PN}-0.12.0-musl.patch
|
||||
"${FILESDIR}"/${PN}-0.12.0-tests-run.patch
|
||||
)
|
||||
|
||||
python_check_deps() {
|
||||
|
||||
12
sys-apps/bubblewrap/files/bubblewrap-0.12.0-tests-run.patch
Normal file
12
sys-apps/bubblewrap/files/bubblewrap-0.12.0-tests-run.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
https://bugs.gentoo.org/982101
|
||||
--- a/tests/test-sandbox.py
|
||||
+++ b/tests/test-sandbox.py
|
||||
@@ -309,7 +309,7 @@ class TestSandbox(unittest.TestCase):
|
||||
@in_sandbox()
|
||||
def test_ro_bind_root_is_recursive(self):
|
||||
"""The base --ro-bind / / should apply read-only to sub-mounts."""
|
||||
- skip_prefixes = ('/dev', '/proc', '/sys', '/tmp')
|
||||
+ skip_prefixes = ('/dev', '/proc', '/sys', '/tmp', '/run')
|
||||
for mountpoint in list_mounts():
|
||||
if any(mountpoint == p or mountpoint.startswith(p + '/')
|
||||
for p in skip_prefixes):
|
||||
Reference in New Issue
Block a user