From 79e88eaa4d3a5e22a88469d09488a287f8449d51 Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Wed, 4 Jan 2023 15:22:21 +0000 Subject: [PATCH] Allow older version of tox to still work for this repo When updating the tox.ini files to support tox 4 the older tox 2.9 support became broken. That version of tox is still being used by several contributors to this repo. The proposed change is to manually alias whitelist_externals to allowlist_externals in the tox.ini sections. Partial-Bug: #2000399 Signed-off-by: Al Bailey Change-Id: I2cbd04b8170ae30cbfa8e9e93cc67af54e0cf602 --- tox.ini | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 38316dd68..3e56a0574 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = docs,linters -minversion = 2.3 +minversion = 2.9 skipsdist = True [testenv] @@ -34,6 +34,7 @@ allowlist_externals = bash get-remote-files.sh git # hw-updates.sh +whitelist_externals = {[testenv:docs]allowlist_externals} [testenv:api-ref] deps = {[testenv:docs]deps} @@ -41,9 +42,11 @@ commands = rm -rf api-ref/build sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html allowlist_externals = rm +whitelist_externals = {[testenv:api-ref]allowlist_externals} [testenv:linters] allowlist_externals = bash +whitelist_externals = {[testenv:linters]allowlist_externals} commands = bash -c "find {toxinidir} \ \( -name .tox -prune \) \ @@ -63,12 +66,14 @@ commands = bash new-topic.sh {env:PWD} {toxinidir} allowlist_externals = new-topic.sh bash +whitelist_externals = {[testenv:newfile]allowlist_externals} [testenv:picks] commands = ./pickCompare.sh allowlist_externals = pickCompare.sh bash +whitelist_externals = {[testenv:picks]allowlist_externals} [testenv:linkcheck]