Skip to content

Commit a2beea0

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "tools: Allow check-cherry-picks.sh to be disabled by an env var" into stable/victoria
2 parents a98a145 + 3d86df0 commit a2beea0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tools/check-cherry-picks.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
# to verify that they're all on either master or stable/ branches
55
#
66

7+
# Allow this script to be disabled by a simple env var
8+
if [ ${DISABLE_CHERRY_PICK_CHECK:-0} -eq 1 ]; then
9+
exit 0
10+
fi
11+
712
commit_hash=""
813

914
# Check if the patch is a merge patch by counting the number of parents.

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ commands =
4949
description =
5050
Run style checks.
5151
envdir = {toxworkdir}/shared
52+
passenv =
53+
DISABLE_CHERRY_PICK_CHECK
5254
commands =
5355
{[testenv:mypy]commands}
5456
bash tools/flake8wrap.sh {posargs}

0 commit comments

Comments
 (0)