[ninjalog_uploader] Exclude -p ninja option from targets metrics

Some records include '-p' as a target in the ninja metrics.

Bug: b/270907050
Change-Id: I4040db5793e682eaa48242bc27756c91d05ad320
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4302230
Auto-Submit: Junji Watanabe <jwata@google.com>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
changes/30/4302230/3
Junji Watanabe 2 years ago committed by LUCI CQ
parent 87fa610fe0
commit 56a18a86fe

@ -80,7 +80,7 @@ def GetBuildTargetFromCommandLine(cmdline):
# Skipping all args that involve these flags, and taking all remaining args
# as targets.
onearg_flags = ('-C', '-f', '-j', '-k', '-l', '-d', '-t', '-w')
onearg_flags = ('-C', '-d', '-f', '-j', '-k', '-l', '-p', '-t', '-w')
zeroarg_flags = ('--version', '-n', '-v')
targets = []

Loading…
Cancel
Save