mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
siso: do not have _is_subcommand_present print to stdout.
Bug: b/455433899 Change-Id: I20a840669538c1a48a645226b949b37f6a6a6964 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7205887 Reviewed-by: Junji Watanabe <jwata@google.com> Commit-Queue: Alex Ovsienko <ovsienko@google.com>
This commit is contained in:
4
siso.py
4
siso.py
@@ -44,7 +44,9 @@ def parse_args(args):
|
||||
# Subcommand completes successfully if subcommand is present, returning 0,
|
||||
# and 2 if it's not present.
|
||||
def _is_subcommand_present(siso_path: str, subc: str) -> bool:
|
||||
return subprocess.call([siso_path, "help", subc]) == 0
|
||||
return subprocess.call([siso_path, "help", subc],
|
||||
stdout=subprocess.DEVNULL,
|
||||
stderr=subprocess.DEVNULL) == 0
|
||||
|
||||
|
||||
# Fetch PID platform independently of possibly running collector
|
||||
|
||||
Reference in New Issue
Block a user