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: Ic19cac494dd1d1d256d8f6c2113f9ad6a36944cc
This commit is contained in:
parent
3de36d7f22
commit
93318327fc
@ -16,8 +16,14 @@ install_command = pip install -U --force-reinstall \
|
||||
{opts} {packages}
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = pytest {posargs}
|
||||
whitelist_externals = bash
|
||||
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||
allowlist_externals = bash
|
||||
passenv =
|
||||
http_proxy
|
||||
HTTP_PROXY
|
||||
https_proxy
|
||||
HTTPS_PROXY
|
||||
no_proxy
|
||||
NO_PROXY
|
||||
|
||||
[testenv:py27]
|
||||
basepython = python2.7
|
||||
|
@ -10,7 +10,7 @@ usedevelop = True
|
||||
install_command = pip install -U --force-reinstall {opts} {packages}
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = pytest {posargs}
|
||||
whitelist_externals = bash
|
||||
allowlist_externals = bash
|
||||
|
||||
[testenv:py27]
|
||||
basepython = python2.7
|
||||
|
2
tox.ini
2
tox.ini
@ -22,7 +22,7 @@ setenv =
|
||||
deps =
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
whitelist_externals =
|
||||
allowlist_externals =
|
||||
bash
|
||||
|
||||
[testenv:bashate]
|
||||
|
@ -17,7 +17,7 @@ setenv =
|
||||
deps =
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
whitelist_externals =
|
||||
allowlist_externals =
|
||||
bash
|
||||
commands =
|
||||
pytest pci_irq_affinity/tests/
|
||||
@ -82,4 +82,4 @@ description = Dummy environment to allow bandit to be run in subdir tox
|
||||
# further relies on "tox.skipsdist = True" above).
|
||||
deps = bindep
|
||||
commands = bindep test
|
||||
usedevelop = False
|
||||
usedevelop = False
|
||||
|
Loading…
Reference in New Issue
Block a user