Bug #334253 - Fix breakage in FEATURES=test-fail-continue logic.
authorZac Medico <zmedico@gentoo.org>
Tue, 24 Aug 2010 13:37:40 +0000 (06:37 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 24 Aug 2010 13:37:40 +0000 (06:37 -0700)
pym/_emerge/EbuildPhase.py

index d0a218b179dfe2ecb6dd3e3c1b77f2cf643f7440..58ce0c62c929edd937a57a495722554ee91ce9e3 100644 (file)
@@ -116,7 +116,11 @@ class EbuildPhase(CompositeTask):
                        self._start_task(post_phase, self._post_phase_exit)
                        return
 
-               self.returncode = ebuild_process.returncode
+               # this point is not reachable if there was a failure and
+               # we returned for die_hooks above, so returncode must
+               # indicate success (especially if ebuild_process.returncode
+               # is unsuccessful and test-fail-continue came into play)
+               self.returncode = os.EX_OK
                self._current_task = None
                self.wait()