Commit 67c48743 authored by richardmaw-codethink's avatar richardmaw-codethink
Browse files

WIP: Add method for getting build log

parent 236f9958
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -1928,6 +1928,11 @@ class Element(Plugin):
    def _subst_string(self, value):
    def _subst_string(self, value):
        return self.__variables.subst(value)
        return self.__variables.subst(value)


    def _get_build_log(self):
        self.__assert_cached()
        artifact_base, _ = self.__extract()
        return os.path.join(artifact_base, 'logs', 'build.log')

    # Returns the element whose sources this element is ultimately derived from.
    # Returns the element whose sources this element is ultimately derived from.
    #
    #
    # This is intended for being used to redirect commands that operate on an
    # This is intended for being used to redirect commands that operate on an