Use log- prefix for filtered log arg so that buildbot picks it up and uploads as an artefact

This commit is contained in:
Manish Goregaokar 2016-11-28 14:28:30 -08:00
parent c0c65ea637
commit f42ce6de92
2 changed files with 8 additions and 8 deletions

View file

@ -484,13 +484,13 @@ class MachCommands(CommandBase):
category='testing')
@CommandArgument('summary',
help="Error summary log to take un")
@CommandArgument('--output', default=None,
@CommandArgument('--log-filteredsummary', default=None,
help='Print filtered log to file')
@CommandArgument('--auth', default=None,
help='File containing basic authorization credentials for Github API (format `username:password`)')
@CommandArgument('--use-tracker', default=False, action='store_true',
help='Use https://www.joshmatthews.net/intermittent-tracker')
def filter_intermittents(self, summary, output, auth, use_tracker):
def filter_intermittents(self, summary, log_filteredsummary, auth, use_tracker):
encoded_auth = None
if auth:
with open(auth, "r") as file:
@ -525,7 +525,7 @@ class MachCommands(CommandBase):
if len(actual_failures) == 0:
return 0
output = open(output, "w") if output else sys.stdout
output = open(log_filteredsummary, "w") if log_filteredsummary else sys.stdout
for failure in actual_failures:
json.dump(failure, output)
print("\n", end='', file=output)