summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-05-09 22:50:49 +0000
committerZac Medico <zmedico@gentoo.org>2007-05-09 22:50:49 +0000
commit6c4112a19319fbf87250a6e3601875949812e1db (patch)
treebe5918199a9f52e80e428cf4a0e01aaa867e6bd5 /pym
parentc4cf6ac4bc08680d5428ec00d105d544ef839bcd (diff)
downloadportage-6c4112a19319fbf87250a6e3601875949812e1db.tar.gz
portage-6c4112a19319fbf87250a6e3601875949812e1db.tar.bz2
portage-6c4112a19319fbf87250a6e3601875949812e1db.zip
Make sure USE=test is properly enabled when the test phase is forced via the ebuild command. Thanks to Caster for reporting. (trunk r6507:6508)
svn path=/main/branches/2.1.2/; revision=6509
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 360abe4c1..bbb27fc14 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1920,6 +1920,8 @@ class config:
# FEATURES=test should imply USE=test
if "test" in self.configlist[-1].get("FEATURES","").split():
myflags.add("test")
+ if self.get("EBUILD_FORCE_TEST") == "1":
+ self.usemask.discard("test")
usesplit = [ x for x in myflags if \
x not in self.usemask]