run_tests: only allow help2man skipping in CI

Make sure we run this for local devs.

Change-Id: I472b7c347086d54649dd9d5778eea4737447b353
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/471921
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: Scott Lee <ddoman@google.com>
Commit-Queue: Mike Frysinger <vapier@google.com>
This commit is contained in:
Mike Frysinger 2025-04-30 14:38:52 -04:00 committed by LUCI
parent 21cbcc54e9
commit c448ba9cc7

View File

@ -104,7 +104,8 @@ def run_isort():
def run_update_manpages() -> int: def run_update_manpages() -> int:
"""Returns the exit code from release/update-manpages.""" """Returns the exit code from release/update-manpages."""
if not shutil.which("help2mafn"): # Allow this to fail on CI, but not local devs.
if is_ci() and not shutil.which("help2man"):
print("update-manpages: help2man not found; skipping test") print("update-manpages: help2man not found; skipping test")
return 0 return 0