You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:55:54 UTC

[buildstream] 10/12: WIP: Add method for getting build log

This is an automated email from the ASF dual-hosted git repository.

not-in-ldap pushed a commit to branch richardmaw/wip/log-show
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 67c4874363ec152f28005bdb9519ed3fbe5efe1d
Author: Richard Maw <ri...@codethink.co.uk>
AuthorDate: Thu Jun 14 13:29:37 2018 +0100

    WIP: Add method for getting build log
---
 buildstream/element.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/buildstream/element.py b/buildstream/element.py
index bde48a4..51fdff3 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -1928,6 +1928,11 @@ class Element(Plugin):
     def _subst_string(self, 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.
     #
     # This is intended for being used to redirect commands that operate on an