Fixes the several problems/errors caused by tox

Change-Id: I267c52ae96cc91e017141bf6bde9b8a7067a87fe
This commit is contained in:
zhouxinyong 2023-11-01 10:18:16 +08:00
parent e745b5f47c
commit f375220f0b
1 changed files with 9 additions and 4 deletions

13
tox.ini
View File

@ -18,7 +18,10 @@ deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
passenv =
http_proxy
https_proxy
no_proxy
[testenv:debug-py36]
basepython = python3.6
@ -39,6 +42,8 @@ commands =
doc8 doc/source
# Run bashate checks
bash -c "find sahara_plugin_mapr -iname '*.sh' -print0 | xargs -0 bashate -v"
allowlist_externals =
bash
[testenv:venv]
commands = {posargs}
@ -50,7 +55,7 @@ deps =
commands =
rm -rf doc/build/html
sphinx-build -W -b html doc/source doc/build/html
whitelist_externals =
allowlist_externals =
rm
[testenv:pdf-docs]
@ -59,7 +64,7 @@ commands =
rm -rf doc/build/pdf
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
whitelist_externals =
allowlist_externals =
make
rm
@ -70,7 +75,7 @@ deps =
commands =
rm -rf releasenotes/build releasenotes/html
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
whitelist_externals = rm
allowlist_externals = rm
[testenv:debug]
# It runs tests from the specified dir (default is sahara_plugin_mapr/tests)