Replace whitelist_externals with allowlist_externals

whitelist_externals option is deprecated in tox 3.27[1] and removed
in tox 4[2]. Also we're seeing a gate failure due to this.

2022-12-29 16:48:15.280775 | ubuntu-jammy | docs: 275 W commands[0]> rm -rf doc/build [tox/tox_env/api.py:421]
2022-12-29 16:48:15.282518 | ubuntu-jammy | docs: 277 E failed with rm is not allowed, use allowlist_externals to allow it [tox/session/cmd/run/single.py:54]
2022-12-29 16:48:15.283367 | ubuntu-jammy |   docs: FAIL code 1 (0.08 seconds)

This patch replaces whitelist_externals with allowlist_externals.

[1] https://tox.wiki/en/3.27.1/config.html#conf-allowlist_externals
[2] https://tox.wiki/en/latest/config.html#allowlist_externals

Change-Id: I3380ddfda752b03e0171d6d7a77f500da5b00169
This commit is contained in:
Rajat Dhasmana 2022-12-30 13:49:14 +00:00
parent 2d0d8c2b7c
commit 87ff6571bf
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ commands = stestr run --slowest {posargs}
commands = {posargs}
[testenv:docs]
whitelist_externals =
allowlist_externals =
rm
commands =
rm -rf doc/build