summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
authorknownexus <phillip.smyth@codethink.co.uk>2018-07-31 12:14:21 +0100
committerknownexus <phillip.smyth@codethink.co.uk>2018-07-31 17:32:58 +0100
commit88cd61ea10bff44191ebfd44e3b5cc22495ad102 (patch)
treecfac197b99585814c15800b4535099085fdb21d2 /buildstream
parente8cd43dc50c41c44bf29d68e4ce947182de5d848 (diff)
downloadbuildstream-88cd61ea10bff44191ebfd44e3b5cc22495ad102.tar.gz
Added the missing `_get_build_log` function
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/element.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index dd2e60546..4260d32a5 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -232,6 +232,7 @@ class Element(Plugin):
self.__required = False # Whether the artifact is required in the current session
self.__artifact_size = None # The size of data committed to the artifact cache
self.__build_result = None # The result of assembling this Element
+ self._build_log_path = None # The path of the build log for this Element
# hash tables of loaded artifact metadata, hashed by key
self.__metadata_keys = {} # Strong and weak keys for this key
@@ -1581,8 +1582,9 @@ class Element(Plugin):
# Copy build log
log_filename = context.get_log_filename()
+ self._build_log_path = os.path.join(logsdir, 'build.log')
if log_filename:
- shutil.copyfile(log_filename, os.path.join(logsdir, 'build.log'))
+ shutil.copyfile(log_filename, self._build_log_path)
# Store public data
_yaml.dump(_yaml.node_sanitize(self.__dynamic_public), os.path.join(metadir, 'public.yaml'))
@@ -1633,6 +1635,9 @@ class Element(Plugin):
# Finally cleanup the build dir
cleanup_rootdir()
+ def _get_build_log(self):
+ return self._build_log_path
+
# _pull_pending()
#
# Check whether the artifact will be pulled.