aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-02-09 19:18:26 -0800
committerZac Medico <zmedico@gentoo.org>2020-02-09 19:18:53 -0800
commit240e7124f02a84a572a7a115e9f0df22579e1c55 (patch)
treed5f7e47be4c4c967cc36e3b730b0eb2840690ff8 /lib
parenttest_virtual_w3m: add realistic case, deps copied from real ebuilds (diff)
downloadportage-240e7124f02a84a572a7a115e9f0df22579e1c55.tar.gz
portage-240e7124f02a84a572a7a115e9f0df22579e1c55.tar.bz2
portage-240e7124f02a84a572a7a115e9f0df22579e1c55.zip
ResolverPlayground: set PORTAGE_DEBUG=1 for debug mode
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/portage/tests/resolver/ResolverPlayground.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/portage/tests/resolver/ResolverPlayground.py b/lib/portage/tests/resolver/ResolverPlayground.py
index d7fbe4390..cc0aa46e9 100644
--- a/lib/portage/tests/resolver/ResolverPlayground.py
+++ b/lib/portage/tests/resolver/ResolverPlayground.py
@@ -555,6 +555,9 @@ class ResolverPlayground(object):
"PORTAGE_REPOSITORIES": "\n".join("[%s]\n%s" % (repo_name, "\n".join("%s = %s" % (k, v) for k, v in repo_config.items())) for repo_name, repo_config in self._repositories.items())
}
+ if self.debug:
+ env["PORTAGE_DEBUG"] = "1"
+
trees = portage.create_trees(env=env, eprefix=self.eprefix,
**create_trees_kwargs)