Allow older version of tox to still work for this repo

When updating the tox.ini files to support tox 4 the older
tox 2.9 support became broken.  That version of tox is
still being used by several contributors to this repo.

The proposed change is to manually alias whitelist_externals
to allowlist_externals in the tox.ini sections.

Partial-Bug: #2000399

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I2cbd04b8170ae30cbfa8e9e93cc67af54e0cf602
This commit is contained in:
Al Bailey 2023-01-04 15:22:21 +00:00
parent a7927db517
commit 79e88eaa4d
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[tox]
envlist = docs,linters
minversion = 2.3
minversion = 2.9
skipsdist = True
[testenv]
@ -34,6 +34,7 @@ allowlist_externals = bash
get-remote-files.sh
git
# hw-updates.sh
whitelist_externals = {[testenv:docs]allowlist_externals}
[testenv:api-ref]
deps = {[testenv:docs]deps}
@ -41,9 +42,11 @@ commands =
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
allowlist_externals = rm
whitelist_externals = {[testenv:api-ref]allowlist_externals}
[testenv:linters]
allowlist_externals = bash
whitelist_externals = {[testenv:linters]allowlist_externals}
commands =
bash -c "find {toxinidir} \
\( -name .tox -prune \) \
@ -63,12 +66,14 @@ commands =
bash new-topic.sh {env:PWD} {toxinidir}
allowlist_externals = new-topic.sh
bash
whitelist_externals = {[testenv:newfile]allowlist_externals}
[testenv:picks]
commands =
./pickCompare.sh
allowlist_externals = pickCompare.sh
bash
whitelist_externals = {[testenv:picks]allowlist_externals}
[testenv:linkcheck]