mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +01:00
Remove unnecessary always succeed flag
This commit is contained in:
parent
49d94cb08b
commit
4f446f8c85
1 changed files with 2 additions and 8 deletions
|
@ -535,16 +535,13 @@ class MachCommands(CommandBase):
|
||||||
help='The API endpoint for tracking known intermittent failures.')
|
help='The API endpoint for tracking known intermittent failures.')
|
||||||
@CommandArgument('--reporter-api', default=None, action='store',
|
@CommandArgument('--reporter-api', default=None, action='store',
|
||||||
help='The API endpoint for reporting tracked intermittent failures.')
|
help='The API endpoint for reporting tracked intermittent failures.')
|
||||||
@CommandArgument('--always-succeed', default=False, action='store_true',
|
|
||||||
help='Always yield exit code of zero')
|
|
||||||
def filter_intermittents(self,
|
def filter_intermittents(self,
|
||||||
summary,
|
summary,
|
||||||
log_filteredsummary,
|
log_filteredsummary,
|
||||||
log_intermittents,
|
log_intermittents,
|
||||||
auth,
|
auth,
|
||||||
tracker_api,
|
tracker_api,
|
||||||
reporter_api,
|
reporter_api):
|
||||||
always_succeed):
|
|
||||||
encoded_auth = None
|
encoded_auth = None
|
||||||
if auth:
|
if auth:
|
||||||
with open(auth, "r") as file:
|
with open(auth, "r") as file:
|
||||||
|
@ -611,10 +608,7 @@ class MachCommands(CommandBase):
|
||||||
if actual_failures:
|
if actual_failures:
|
||||||
format(actual_failures, description)
|
format(actual_failures, description)
|
||||||
|
|
||||||
if always_succeed:
|
return bool(actual_failures)
|
||||||
return 0
|
|
||||||
else:
|
|
||||||
return bool(actual_failures)
|
|
||||||
|
|
||||||
@Command('test-android-startup',
|
@Command('test-android-startup',
|
||||||
description='Extremely minimal testing of Servo for Android',
|
description='Extremely minimal testing of Servo for Android',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue