From 1f018b09c8bd2380c13362afda3154efd59d913b Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 14 Dec 2018 17:07:56 +0100 Subject: Create filtered-wpt-errorsummary.log even if it would be empty --- python/servo/testing_commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/servo/testing_commands.py') 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', -- cgit v1.2.3