diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2018-12-14 17:07:56 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2018-12-14 17:08:21 +0100 |
commit | 1f018b09c8bd2380c13362afda3154efd59d913b (patch) | |
tree | af8846b5ad5028a2ceb47f2194d99f13a268acf1 /python/servo/testing_commands.py | |
parent | 4cb0307d273f69221b0d87372579e796e4f35b2f (diff) | |
download | servo-1f018b09c8bd2380c13362afda3154efd59d913b.tar.gz servo-1f018b09c8bd2380c13362afda3154efd59d913b.zip |
Create filtered-wpt-errorsummary.log even if it would be empty
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 6 |
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', |