aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo')
-rw-r--r--python/servo/testing_commands.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 01cdc14db30..f44bfd46f53 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -563,12 +563,9 @@ class MachCommands(CommandBase):
else:
actual_failures.append(failure["output"])
- def format(outputs, description, file=None):
+ def format(outputs, description, file=sys.stdout):
formatted = "%s %s:\n%s" % (len(outputs), description, "\n".join(outputs))
- if file:
- file.write(formatted.encode("utf-8"))
- else:
- print(formatted)
+ file.write(formatted.encode("utf-8"))
if log_intermittents:
with open(log_intermittents, "wb") as file: