projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59991c6
)
tests/emerge: auto-disable sandbox if necessary
author
Zac Medico
<zmedico@gentoo.org>
Sun, 4 Sep 2011 17:21:57 +0000
(10:21 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 4 Sep 2011 17:21:57 +0000
(10:21 -0700)
pym/portage/tests/emerge/test_simple.py
patch
|
blob
|
history
diff --git
a/pym/portage/tests/emerge/test_simple.py
b/pym/portage/tests/emerge/test_simple.py
index cfb6cae552843d823dde72280686ddb6e5e4b3fb..1afa04750afef976420eee445631a52e7af4672a 100644
(file)
--- 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")