From: Zac Medico Date: Tue, 15 Jan 2013 14:45:46 +0000 (-0800) Subject: test-fail-continue: mark complete, bug #452030 X-Git-Tag: v2.2.0_alpha153~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=70bfb6b8ebdb74fe5fbe244532e35f86cab9742e;p=portage.git test-fail-continue: mark complete, bug #452030 --- diff --git a/pym/_emerge/EbuildPhase.py b/pym/_emerge/EbuildPhase.py index 61e9a6f84..493134999 100644 --- a/pym/_emerge/EbuildPhase.py +++ b/pym/_emerge/EbuildPhase.py @@ -190,7 +190,14 @@ class EbuildPhase(CompositeTask): if self._default_exit(ebuild_process) != os.EX_OK: if self.phase == "test" and \ "test-fail-continue" in self.settings.features: - pass + # mark test phase as complete (bug #452030) + try: + open(_unicode_encode(os.path.join( + self.settings["PORTAGE_BUILDDIR"], ".tested"), + encoding=_encodings['fs'], errors='strict'), + 'wb').close() + except OSError: + pass else: fail = True