From 49d94cb08b1d2f8039ea930692a63cf3a613a6fe Mon Sep 17 00:00:00 2001 From: cybai Date: Mon, 16 Aug 2021 22:38:44 +0900 Subject: Run WPT sync nightly on GitHub Action --- python/servo/testing_commands.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'python/servo/testing_commands.py') 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', -- cgit v1.2.3