mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Write indented JSON in ./mach filter_intermittents
This commit is contained in:
parent
b46b873e77
commit
60130eee83
1 changed files with 2 additions and 2 deletions
|
@ -571,7 +571,7 @@ class MachCommands(CommandBase):
|
|||
if log_intermittents:
|
||||
with open(log_intermittents, "w") as intermittents_file:
|
||||
for intermittent in intermittents:
|
||||
json.dump(intermittent, intermittents_file)
|
||||
json.dump(intermittent, intermittents_file, indent=4)
|
||||
print("\n", end='', file=intermittents_file)
|
||||
|
||||
if len(actual_failures) == 0:
|
||||
|
@ -579,7 +579,7 @@ class MachCommands(CommandBase):
|
|||
|
||||
output = open(log_filteredsummary, "w") if log_filteredsummary else sys.stdout
|
||||
for failure in actual_failures:
|
||||
json.dump(failure, output)
|
||||
json.dump(failure, output, indent=4)
|
||||
print("\n", end='', file=output)
|
||||
|
||||
if output is not sys.stdout:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue