Update tox.ini to work with tox 4

This change will allow this repo to pass zuul now
that this has merged:
https://review.opendev.org/c/zuul/zuul-jobs/+/866943

Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals

Partial-Bug: #2000399

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I03c6cd50b9545b8553e7b1175a3684901beb3f52
This commit is contained in:
Al Bailey 2022-12-27 01:33:06 +00:00
parent 3514d4539f
commit c66d403926
1 changed files with 3 additions and 3 deletions

View File

@ -17,14 +17,14 @@ deps = bindep
commands = bindep test
[testenv:docs]
whitelist_externals = bash
allowlist_externals = bash
commands =
bash -c 'if [ -d doc ]; then \
python setup.py build_sphinx; \
fi'
[testenv:linters]
whitelist_externals = bash
allowlist_externals = bash
passenv =
# NOTE(pabelanger): if you'd like to run tox -elinters locally, you'll need
# to export ANSIBLE_ROLES_PATH pointing to the currect repos.
@ -96,7 +96,7 @@ install_command = pip install -U \
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} \
{opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = bash
allowlist_externals = bash
commands =
bash -c 'if [ -d {toxinidir}/../zuul-jobs ]; then jobsdir={toxinidir}/../zuul-jobs; \
else jobsdir={toxinidir}/../stx-zuul-jobs; \