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:
Alex Ovsienko
2025-12-01 17:09:47 -08:00
committed by LUCI CQ
parent f32e176f94
commit db99cc40f5
2 changed files with 4 additions and 2 deletions

View File

@@ -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