Merge "tools: Allow check-cherry-picks.sh to be disabled by an env var" into stable/victoria

This commit is contained in:
Zuul 2021-02-18 12:21:47 +00:00 committed by Gerrit Code Review
commit a2beea036c
2 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,11 @@
# to verify that they're all on either master or stable/ branches
#
# Allow this script to be disabled by a simple env var
if [ ${DISABLE_CHERRY_PICK_CHECK:-0} -eq 1 ]; then
exit 0
fi
commit_hash=""
# Check if the patch is a merge patch by counting the number of parents.

View File

@ -49,6 +49,8 @@ commands =
description =
Run style checks.
envdir = {toxworkdir}/shared
passenv =
DISABLE_CHERRY_PICK_CHECK
commands =
{[testenv:mypy]commands}
bash tools/flake8wrap.sh {posargs}