diff options
| author | Mike Frysinger <vapier@google.com> | 2025-08-21 10:40:51 -0400 |
|---|---|---|
| committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2025-08-21 11:16:35 -0700 |
| commit | 80d1a5ad3ec862c64a3bbe9919d4547340950183 (patch) | |
| tree | ce00fff8d509cb9292dcd0e42922b8235fde224c /run_tests | |
| parent | c615c964fb0c40f1ff2b70681336d0d5d89ddcd7 (diff) | |
| download | git-repo-80d1a5ad3ec862c64a3bbe9919d4547340950183.tar.gz | |
run_tests: add file header checker for licensing blocks
Change-Id: Ic0bfa3b03e2ba46d565a5bc2c1b7a7463b7dca2c
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/500103
Commit-Queue: Mike Frysinger <vapier@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: Scott Lee <ddoman@google.com>
Diffstat (limited to 'run_tests')
| -rwxr-xr-x | run_tests | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -102,6 +102,15 @@ def run_isort(): | |||
| 102 | ).returncode | 102 | ).returncode |
| 103 | 103 | ||
| 104 | 104 | ||
| 105 | def run_check_metadata(): | ||
| 106 | """Returns the exit code from check-metadata.""" | ||
| 107 | return subprocess.run( | ||
| 108 | [sys.executable, "release/check-metadata.py"], | ||
| 109 | check=False, | ||
| 110 | cwd=ROOT_DIR, | ||
| 111 | ).returncode | ||
| 112 | |||
| 113 | |||
| 105 | def run_update_manpages() -> int: | 114 | def run_update_manpages() -> int: |
| 106 | """Returns the exit code from release/update-manpages.""" | 115 | """Returns the exit code from release/update-manpages.""" |
| 107 | # Allow this to fail on CI, but not local devs. | 116 | # Allow this to fail on CI, but not local devs. |
| @@ -124,6 +133,7 @@ def main(argv): | |||
| 124 | run_black, | 133 | run_black, |
| 125 | run_flake8, | 134 | run_flake8, |
| 126 | run_isort, | 135 | run_isort, |
| 136 | run_check_metadata, | ||
| 127 | run_update_manpages, | 137 | run_update_manpages, |
| 128 | ) | 138 | ) |
| 129 | # Run all the tests all the time to get full feedback. Don't exit on the | 139 | # Run all the tests all the time to get full feedback. Don't exit on the |
