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: I879b2d49fca6437dbe33802c85d20394d6bdc60e
This commit is contained in:
Al Bailey 2022-12-26 21:52:05 +00:00
parent 3cad93752e
commit 6d68a2e26d

View File

@ -16,7 +16,7 @@ deps = -r{toxinidir}/requirements.txt
[testenv:linters] [testenv:linters]
basepython = python3 basepython = python3
whitelist_externals = bash allowlist_externals = bash
commands = commands =
{[testenv:ansible-lint]commands} {[testenv:ansible-lint]commands}
bash -c "find {toxinidir} \ bash -c "find {toxinidir} \
@ -34,7 +34,7 @@ commands =
[testenv:ansible-lint] [testenv:ansible-lint]
basepython = python3 basepython = python3
whitelist_externals = bash allowlist_externals = bash
# ansible-lint error checks are suppressed/skipped through the .ansible-lint file # ansible-lint error checks are suppressed/skipped through the .ansible-lint file
commands = commands =
bash -c "ls playbookconfig/src/playbooks/*.yml | xargs --no-run-if-empty ansible-lint" bash -c "ls playbookconfig/src/playbooks/*.yml | xargs --no-run-if-empty ansible-lint"