Commit 7dcc6231 authored by Mohamed Heikal's avatar Mohamed Heikal Committed by Commit Bot

Only parse known args for monochrome_apk_checker

monochrome_apk_checker.py gets called from bots and sometimes extra
arguments are passed in that are not relevant for this script. This cl
just changes the parser behaviour to ignore unknown arguments.

Bug: 1084351
Change-Id: I9b574bd6ae8f16e3c097baa7b50811557a2e773b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2209115Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Auto-Submit: Mohamed Heikal <mheikal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#772286}
parent 94cbc0db
......@@ -245,7 +245,11 @@ def ParseArgs(args):
parser.add_argument(
'--system-webview-pathmap',
help='The system webview APK resources pathmap path.')
return parser.parse_args(args)
# This script is called from test bots that sometimes would add extra unneeded
# arguments. Just ignore unknown ones. crbug.com/1084351
parsed, _ = parser.parse_known_args(args)
return parsed
def main():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment