summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/dbapi
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-09-25 17:12:52 -0700
committerZac Medico <zmedico@gentoo.org>2012-09-25 17:12:52 -0700
commit893663df409d05dc32fc7fd461929068c3d4ccea (patch)
treed4da7c827da2e6c7b605ff288672688211db42bb /pym/portage/tests/dbapi
parent9d84d008d1261405d22de537d8672d67791a9271 (diff)
downloadportage-893663df409d05dc32fc7fd461929068c3d4ccea.tar.gz
portage-893663df409d05dc32fc7fd461929068c3d4ccea.tar.bz2
portage-893663df409d05dc32fc7fd461929068c3d4ccea.zip
ResolverPlayground: support targetroot
In order to support targetroot, ResolverPlayground always writes make.conf, since create_trees does not propagate all of the necessary settings via the env parameter (because the env settings often need to be isolated from eachother, especially for cross-compilation).
Diffstat (limited to 'pym/portage/tests/dbapi')
-rw-r--r--pym/portage/tests/dbapi/test_portdb_cache.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/pym/portage/tests/dbapi/test_portdb_cache.py b/pym/portage/tests/dbapi/test_portdb_cache.py
index 4a0129b3e..6526246e1 100644
--- a/pym/portage/tests/dbapi/test_portdb_cache.py
+++ b/pym/portage/tests/dbapi/test_portdb_cache.py
@@ -113,18 +113,6 @@ class PortdbCacheTestCase(TestCase):
"""),),
)
- features = []
- if not portage.process.sandbox_capable or \
- os.environ.get("SANDBOX_ON") == "1":
- features.append("-sandbox")
-
- make_conf = (
- "FEATURES=\"%s\"\n" % (" ".join(features),),
- "PORTDIR=\"%s\"\n" % (portdir,),
- "PORTAGE_GRPNAME=\"%s\"\n" % (os.environ["PORTAGE_GRPNAME"],),
- "PORTAGE_USERNAME=\"%s\"\n" % (os.environ["PORTAGE_USERNAME"],),
- )
-
pythonpath = os.environ.get("PYTHONPATH")
if pythonpath is not None and not pythonpath.strip():
pythonpath = None
@@ -154,9 +142,6 @@ class PortdbCacheTestCase(TestCase):
try:
for d in dirs:
ensure_dirs(d)
- with open(os.path.join(user_config_dir, "make.conf"), 'w') as f:
- for line in make_conf:
- f.write(line)
if debug:
# The subprocess inherits both stdout and stderr, for