diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-10-18 03:21:07 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-10-18 03:21:07 +0000 |
commit | 976fc972fd0f0a721e028b38885b33a200a32c17 (patch) | |
tree | a28a565c3e2607b6756106e9b050c3fbb6df5cc7 | |
parent | 34ef3eed59e84781fe6e8d0f20a5859647740312 (diff) | |
download | portage-976fc972fd0f0a721e028b38885b33a200a32c17.tar.gz portage-976fc972fd0f0a721e028b38885b33a200a32c17.tar.bz2 portage-976fc972fd0f0a721e028b38885b33a200a32c17.zip |
Add the "test" flag to implicit IUSE, so handling of FEATURES=test is
consistent regardless of explicit IUSE. Users may use use.mask and
package.use.mask to control FEATURES=test for all ebuilds, regardless of
explicit IUSE. (trunk r14607)
svn path=/main/branches/2.1.7/; revision=14637
-rw-r--r-- | pym/portage/__init__.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 54d45dabc..2cacd9660 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2725,7 +2725,7 @@ class config(object): not hasattr(self, "_ebuild_force_test_msg_shown"): self._ebuild_force_test_msg_shown = True writemsg(_("Forcing test.\n"), noiselevel=-1) - if "test" in self.features and "test" in iuse_implicit: + if "test" in self.features: if "test" in self.usemask and not ebuild_force_test: # "test" is in IUSE and USE=test is masked, so execution # of src_test() probably is not reliable. Therefore, @@ -2814,6 +2814,13 @@ class config(object): # build and bootstrap flags used by bootstrap.sh iuse_implicit.add("build") iuse_implicit.add("bootstrap") + + # Controlled by FEATURES=test. Make this implicit, so handling + # of FEATURES=test is consistent regardless of explicit IUSE. + # Users may use use.mask/package.use.mask to control + # FEATURES=test for all ebuilds, regardless of explicit IUSE. + iuse_implicit.add("test") + return iuse_implicit def _getUseMask(self, pkg): |