test-fail-continue: mark complete, bug #452030
authorZac Medico <zmedico@gentoo.org>
Tue, 15 Jan 2013 14:45:46 +0000 (06:45 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 15 Jan 2013 14:45:46 +0000 (06:45 -0800)
pym/_emerge/EbuildPhase.py

index 61e9a6f84e443ec578550032f22c66fb6c1b7438..493134999f8b64b49567b230fb21b11408c3ffb0 100644 (file)
@@ -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