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: Idd6eab4a194066072ef362be970e5b982665bf43
This commit is contained in:
Al Bailey 2022-12-26 22:01:59 +00:00
parent 399b7c5d9e
commit dcad0bbc57
1 changed files with 5 additions and 5 deletions

10
tox.ini
View File

@ -29,7 +29,7 @@ commands =
git restore doc/source/dist_cloud/kubernetes/*
# bash hw-updates.sh
bash htmlChecks.sh doc/build/html
whitelist_externals = bash
allowlist_externals = bash
htmlChecks.sh
get-remote-files.sh
git
@ -40,10 +40,10 @@ deps = {[testenv:docs]deps}
commands =
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
whitelist_externals = rm
allowlist_externals = rm
[testenv:linters]
whitelist_externals = bash
allowlist_externals = bash
commands =
bash -c "find {toxinidir} \
\( -name .tox -prune \) \
@ -61,13 +61,13 @@ passenv=PWD
commands =
bash -c "echo Running in {env:PWD}"
bash new-topic.sh {env:PWD} {toxinidir}
whitelist_externals = new-topic.sh
allowlist_externals = new-topic.sh
bash
[testenv:picks]
commands =
./pickCompare.sh
whitelist_externals = pickCompare.sh
allowlist_externals = pickCompare.sh
bash