Update tox.ini to work with tox 4

Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals.

Also, add bash to allowlist_externals on generatepot tox env.

Related-Bug: #2000399
Change-Id: I3bb050b8abf3b32929eb0379eb8ac1bb84951803
This commit is contained in:
Ian Y. Choi 2023-09-02 11:35:34 +09:00
parent 4e8bc2dd50
commit 9b939e1b40

View File

@ -31,7 +31,7 @@ commands =
docstheme-build-translated.sh
[testenv:pdf-docs]
whitelist_externals =
allowlist_externals =
make
commands =
sphinx-build -W -b latex doc/source doc/build/pdf
@ -44,11 +44,13 @@ commands =
python {toxinidir}/tools/check_yaml_file.py {toxinidir}/tools/zanata/translation_team.yaml
bash {toxinidir}/tools/check-zanata-users-list.sh
{[testenv:generatepot]commands}
whitelist_externals = bash
allowlist_externals = bash
[testenv:generatepot]
# Generate POT files for translation
commands = {toxinidir}/tools/generatepot.sh
commands =
bash {toxinidir}/tools/generatepot.sh
allowlist_externals = bash
[testenv:zanata-users-sync]
commands =