summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-09-04 10:21:57 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-04 10:21:57 -0700
commit8b977710e7725d395d4d970d17a2d5192df86bbc (patch)
treec42532ca6d8ddc03f1a8bf125525b78e421a73bb /pym
parent59991c66613e7a05e363e32d48bf6ac3918b31a6 (diff)
downloadportage-8b977710e7725d395d4d970d17a2d5192df86bbc.tar.gz
portage-8b977710e7725d395d4d970d17a2d5192df86bbc.tar.bz2
portage-8b977710e7725d395d4d970d17a2d5192df86bbc.zip
tests/emerge: auto-disable sandbox if necessary
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/tests/emerge/test_simple.py6
1 files changed, 6 insertions, 0 deletions
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")