diff options
author | Simon Glass | 2020-04-17 17:51:34 -0600 |
---|---|---|
committer | Simon Glass | 2020-04-26 14:24:08 -0600 |
commit | 60b285f8c3bcd1f169fa72ad58387509673eec8b (patch) | |
tree | 7918a12cd35b5d8b277eb764dda4338e543d8615 /tools/buildman/builder.py | |
parent | 166a98a426616aa3e9c35d94ea3aaf8e67994e33 (diff) |
buildman: Write output files when using -w
At present buildman does not write its own output files (err, done, the
environment) when using -w. However this is useful for when the build is
run with -s to check it.
In fact ProduceResultSummary() reads the result from those files rather
than using the 'result' info directly. So ProcessResult() does not work
with -w at present. It does not print any output.
Fix this by writing output files even when -w is used.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/builder.py')
-rw-r--r-- | tools/buildman/builder.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py index 30ebe1d820a..1b61e3a837e 100644 --- a/tools/buildman/builder.py +++ b/tools/buildman/builder.py @@ -479,6 +479,9 @@ class Builder: Args: commit_upto: Commit number to use (0..self.count-1) """ + if self.work_in_output: + return self._working_dir + commit_dir = None if self.commits: commit = self.commits[commit_upto] @@ -502,6 +505,8 @@ class Builder: target: Target name """ output_dir = self._GetOutputDir(commit_upto) + if self.work_in_output: + return output_dir return os.path.join(output_dir, target) def GetDoneFile(self, commit_upto, target): |