From dcad0bbc571b8dba4f105f7ade90a0ca6f274bc8 Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Mon, 26 Dec 2022 22:01:59 +0000 Subject: [PATCH] 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 Change-Id: Idd6eab4a194066072ef362be970e5b982665bf43 --- tox.ini | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tox.ini b/tox.ini index 5a5823639..38316dd68 100644 --- a/tox.ini +++ b/tox.ini @@ -29,7 +29,7 @@ commands = git restore doc/source/dist_cloud/kubernetes/* # bash hw-updates.sh bash htmlChecks.sh doc/build/html -whitelist_externals = bash +allowlist_externals = bash htmlChecks.sh get-remote-files.sh git @@ -40,10 +40,10 @@ deps = {[testenv:docs]deps} commands = rm -rf api-ref/build sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html -whitelist_externals = rm +allowlist_externals = rm [testenv:linters] -whitelist_externals = bash +allowlist_externals = bash commands = bash -c "find {toxinidir} \ \( -name .tox -prune \) \ @@ -61,13 +61,13 @@ passenv=PWD commands = bash -c "echo Running in {env:PWD}" bash new-topic.sh {env:PWD} {toxinidir} -whitelist_externals = new-topic.sh +allowlist_externals = new-topic.sh bash [testenv:picks] commands = ./pickCompare.sh -whitelist_externals = pickCompare.sh +allowlist_externals = pickCompare.sh bash