aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 90bded199a6..7924cd5e7dd 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -543,7 +543,7 @@ class MachCommands(CommandBase):
reported = set()
proc = subprocess.Popen(
- ["git", "log", "--merges", "--oneline", "-1"],
+ ["git", "log", "--oneline", "-1"],
stdout=subprocess.PIPE)
(last_merge, _) = proc.communicate()
@@ -571,19 +571,19 @@ 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:
- return 0
-
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:
output.close()
+
+ if len(actual_failures) == 0:
+ return 0
return 1
@Command('test-android-startup',