aboutsummaryrefslogtreecommitdiff
path: root/scripts/build-all.py
diff options
context:
space:
mode:
authorDavid Brown <davidb@codeaurora.org>2013-11-18 14:53:09 -0800
committerMichael Bohan <mbohan@codeaurora.org>2014-02-05 09:34:01 -0800
commit0329c70036047039c235b164a7e1e066f007476f (patch)
treeff0185b25070ce82a6dfbdbc7b96a4f824328e57 /scripts/build-all.py
parent5e0a1d3be158c459ca831488426b40a6a621e446 (diff)
scripts: Keep appending log between build parts
Instead of wiping the log file for each make target, only wipe it initially, and then continue to append to it. Instead of closing between files, just flush. Although the last use doesn't ever close the file, it is flushed, and will be closed on exit. Change-Id: Ic4b38cdad993bc32711f832ce30ca8d8dead0db6 Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'scripts/build-all.py')
-rwxr-xr-xscripts/build-all.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/build-all.py b/scripts/build-all.py
index cf77bc76a1b..dfa32d43aef 100755
--- a/scripts/build-all.py
+++ b/scripts/build-all.py
@@ -109,7 +109,7 @@ class LogRunner:
print
result = proc.wait()
- self.fd.close()
+ self.fd.flush()
return result
class Builder():
@@ -167,12 +167,8 @@ class Builder():
cmd_line.append(c)
else:
build_targets.append(c)
+ build = LogRunner(log_name, self.make_env)
for t in build_targets:
- # TODO: This is incorrect, the log is wiped out for
- # each target, meaning the log file will only contain
- # the output of the last target built.
- build = LogRunner(log_name, self.make_env)
-
result = build.run(cmd_line + [t])
if result != 0:
if all_options.keep_going: