aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-12-13 09:30:51 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-12-13 17:45:41 +0100
commit60130eee8365b0bb9831ee728f534edcc518f281 (patch)
tree2e65d48f62f27b8b9a28323a10cb9cc3263cb93f /python/servo/testing_commands.py
parentb46b873e77db399fa266836db91d1c3efc6b33d2 (diff)
downloadservo-60130eee8365b0bb9831ee728f534edcc518f281.tar.gz
servo-60130eee8365b0bb9831ee728f534edcc518f281.zip
Write indented JSON in ./mach filter_intermittents
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index c1f2ef0c65a..85a1a66eff2 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -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: