summaryrefslogtreecommitdiffstats
path: root/pym/portage/__init__.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-12 21:51:45 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-12 21:51:45 +0000
commit83b3cdefe3df272d88232d1fdfbb3b6f1783d0d6 (patch)
tree87c8ab003a74cb4445eea62f1b2f8c7e2b651bc6 /pym/portage/__init__.py
parentd14eaa534fb167dc0dfc8810ca1103d960fbefcd (diff)
downloadportage-83b3cdefe3df272d88232d1fdfbb3b6f1783d0d6.tar.gz
portage-83b3cdefe3df272d88232d1fdfbb3b6f1783d0d6.tar.bz2
portage-83b3cdefe3df272d88232d1fdfbb3b6f1783d0d6.zip
Add a new FEATURES=test-fail-continue value which causes ebuild execution
to continue after the test phase has failed. Thanks to Diego Pettenò <flameeyes@g.o> for the suggestion. (trunk r12214) svn path=/main/branches/2.1.6/; revision=12245
Diffstat (limited to 'pym/portage/__init__.py')
-rw-r--r--pym/portage/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 582b65417..48f0b69e6 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -4493,6 +4493,11 @@ def spawnebuild(mydo, actionmap, mysettings, debug, alwaysdep=0,
_check_build_log(mysettings)
if phase_retval == os.EX_OK:
phase_retval = _post_src_install_checks(mysettings)
+
+ if mydo == "test" and phase_retval != os.EX_OK and \
+ "test-fail-continue" in mysettings.features:
+ phase_retval = os.EX_OK
+
return phase_retval
_post_phase_cmds = {