mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1719226 - Properly print cmake error files. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D119134
This commit is contained in:
parent
899af76508
commit
3c173089ef
@ -64,9 +64,10 @@ def check_run(args):
|
||||
error_match = find_first_match(cmake_error_re)
|
||||
|
||||
def dump_file(log):
|
||||
with open(log, "rb") as f:
|
||||
with open(log, "r", errors="replace") as f:
|
||||
print("\nContents of", log, "follow\n", file=sys.stderr)
|
||||
print(f.read(), file=sys.stderr)
|
||||
for line in f:
|
||||
print(line, file=sys.stderr)
|
||||
|
||||
if output_match:
|
||||
dump_file(output_match.group(1))
|
||||
|
Loading…
Reference in New Issue
Block a user