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>
This commit is contained in:
parent
5e0a1d3be1
commit
0329c70036
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue