diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-11-28 11:11:01 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-11-28 11:09:30 +0100 |
commit | fad1c55301b9f2d091d3b0d8a75ff522ce8dae5a (patch) | |
tree | 952dd8b38fe994473ec89b7d22f828c73849065f /test/lint | |
parent | fa5752da6a58fadd3f79f47ff98b796d9768872a (diff) | |
download | bitcoin-fad1c55301b9f2d091d3b0d8a75ff522ce8dae5a.tar.xz |
lint: Skip COMMIT_RANGE if no CIRRUS_PR
Diffstat (limited to 'test/lint')
-rwxr-xr-x | test/lint/lint-git-commit-check.py | 2 | ||||
-rwxr-xr-x | test/lint/lint-whitespace.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/lint/lint-git-commit-check.py b/test/lint/lint-git-commit-check.py index a1d03370e8..049104398a 100755 --- a/test/lint/lint-git-commit-check.py +++ b/test/lint/lint-git-commit-check.py @@ -46,6 +46,8 @@ def main(): commit_range = merge_base + "..HEAD" else: commit_range = os.getenv("COMMIT_RANGE") + if commit_range == "SKIP_EMPTY_NOT_A_PR": + sys.exit(0) commit_hashes = check_output(["git", "log", commit_range, "--format=%H"], universal_newlines=True, encoding="utf8").splitlines() diff --git a/test/lint/lint-whitespace.py b/test/lint/lint-whitespace.py index 3fb5b80013..72b7ebc394 100755 --- a/test/lint/lint-whitespace.py +++ b/test/lint/lint-whitespace.py @@ -97,6 +97,8 @@ def main(): commit_range = merge_base + "..HEAD" else: commit_range = os.getenv("COMMIT_RANGE") + if commit_range == "SKIP_EMPTY_NOT_A_PR": + sys.exit(0) whitespace_selection = [] tab_selection = [] |