aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-12-14 17:07:56 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-12-14 17:08:21 +0100
commit1f018b09c8bd2380c13362afda3154efd59d913b (patch)
treeaf8846b5ad5028a2ceb47f2194d99f13a268acf1 /python
parent4cb0307d273f69221b0d87372579e796e4f35b2f (diff)
downloadservo-1f018b09c8bd2380c13362afda3154efd59d913b.tar.gz
servo-1f018b09c8bd2380c13362afda3154efd59d913b.zip
Create filtered-wpt-errorsummary.log even if it would be empty
Diffstat (limited to 'python')
-rw-r--r--python/servo/testing_commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 85a1a66eff2..7924cd5e7dd 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -574,9 +574,6 @@ class MachCommands(CommandBase):
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, indent=4)
@@ -584,6 +581,9 @@ class MachCommands(CommandBase):
if output is not sys.stdout:
output.close()
+
+ if len(actual_failures) == 0:
+ return 0
return 1
@Command('test-android-startup',