From 8b977710e7725d395d4d970d17a2d5192df86bbc Mon Sep 17 00:00:00 2001 From: Zac Medico <zmedico@gentoo.org> Date: Sun, 4 Sep 2011 10:21:57 -0700 Subject: [PATCH] tests/emerge: auto-disable sandbox if necessary --- pym/portage/tests/emerge/test_simple.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pym/portage/tests/emerge/test_simple.py b/pym/portage/tests/emerge/test_simple.py index cfb6cae55..1afa04750 100644 --- a/pym/portage/tests/emerge/test_simple.py +++ b/pym/portage/tests/emerge/test_simple.py @@ -188,6 +188,12 @@ src_install() { "PYTHONPATH" : pythonpath, } + features = [] + if not portage.process.sandbox_capable: + features.append("-sandbox") + if features: + env["FEATURES"] = " ".join(features) + dirs = [distdir, fake_bin, portage_tmpdir, var_cache_edb] true_symlinks = ["chown", "chgrp"] true_binary = find_binary("true") -- 2.26.2