mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
check siso summary
This is to make sure that the command runs as intended and make more verbose if it has some error. Bug: b/312632221 Change-Id: I44b372452b37b744f6c02c5a2e34fafe3717e351 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5051585 Commit-Queue: Takuto Ikuta <tikuta@chromium.org> Auto-Submit: Takuto Ikuta <tikuta@chromium.org> Reviewed-by: Junji Watanabe <jwata@google.com> Commit-Queue: Junji Watanabe <jwata@google.com>
This commit is contained in:
@@ -371,17 +371,18 @@ def main():
|
||||
cmd.extend(["--step_types", args.step_types])
|
||||
if args.elapsed_time_sorting:
|
||||
cmd.append("--elapsed_time_sorting")
|
||||
subprocess.run(cmd)
|
||||
else:
|
||||
try:
|
||||
with open(log_file, "r") as log:
|
||||
entries = ReadTargets(log, False)
|
||||
if entries:
|
||||
SummarizeEntries(entries, args.step_types,
|
||||
args.elapsed_time_sorting)
|
||||
except IOError:
|
||||
print("Log file %r not found, no build summary created." % log_file)
|
||||
return errno.ENOENT
|
||||
subprocess.run(cmd, check=True)
|
||||
return 0
|
||||
|
||||
try:
|
||||
with open(log_file, "r") as log:
|
||||
entries = ReadTargets(log, False)
|
||||
if entries:
|
||||
SummarizeEntries(entries, args.step_types,
|
||||
args.elapsed_time_sorting)
|
||||
except IOError:
|
||||
print("Log file %r not found, no build summary created." % log_file)
|
||||
return errno.ENOENT
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user