diff options
author | cybai <cyb.ai.815@gmail.com> | 2021-08-16 22:38:44 +0900 |
---|---|---|
committer | cybai <cyb.ai.815@gmail.com> | 2022-08-16 00:14:55 +0900 |
commit | 49d94cb08b1d2f8039ea930692a63cf3a613a6fe (patch) | |
tree | 55220b0f40b64db26b83c1914938bc4247ca3c19 /python/servo/testing_commands.py | |
parent | de183dfde7156bc014f889d0e21462359aa8f13f (diff) | |
download | servo-49d94cb08b1d2f8039ea930692a63cf3a613a6fe.tar.gz servo-49d94cb08b1d2f8039ea930692a63cf3a613a6fe.zip |
Run WPT sync nightly on GitHub Action
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index a9065d06352..dc73b0af91e 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -535,7 +535,16 @@ class MachCommands(CommandBase): help='The API endpoint for tracking known intermittent failures.') @CommandArgument('--reporter-api', default=None, action='store', help='The API endpoint for reporting tracked intermittent failures.') - def filter_intermittents(self, summary, log_filteredsummary, log_intermittents, auth, tracker_api, reporter_api): + @CommandArgument('--always-succeed', default=False, action='store_true', + help='Always yield exit code of zero') + def filter_intermittents(self, + summary, + log_filteredsummary, + log_intermittents, + auth, + tracker_api, + reporter_api, + always_succeed): encoded_auth = None if auth: with open(auth, "r") as file: @@ -602,7 +611,10 @@ class MachCommands(CommandBase): if actual_failures: format(actual_failures, description) - return bool(actual_failures) + if always_succeed: + return 0 + else: + return bool(actual_failures) @Command('test-android-startup', description='Extremely minimal testing of Servo for Android', |