Ensure python versions
It looks like better to specify basepython for all tox envs. As of the rocky release, we used python 2.7 by default, so this commit adds python 2.7 for tox envs which have no default python. http://lists.openstack.org/pipermail/openstack-discuss/2019-November/010957.html Change-Id: I586d1f63039b71f2ec757b06eb32a30a52705568
This commit is contained in:
parent
b8ebc8d1ac
commit
22e928ac86
4
tox.ini
4
tox.ini
|
@ -94,13 +94,13 @@ setenv =
|
|||
commands = {[unit_tests]commands}
|
||||
|
||||
[testenv:py27integration]
|
||||
basepython = python2.7
|
||||
# Run integration tests only
|
||||
passenv = AVCONV_INSTALLED
|
||||
setenv =
|
||||
PYTHONHASHSEED=0
|
||||
INTEGRATION_TESTS=1
|
||||
SELENIUM_HEADLESS=1
|
||||
basepython = python2.7
|
||||
commands = {envpython} {toxinidir}/manage.py test openstack_dashboard --settings=openstack_dashboard.test.settings --verbosity 2 --tag integration {posargs}
|
||||
|
||||
[testenv:npm]
|
||||
|
@ -178,9 +178,11 @@ application-import-names = horizon,openstack_dashboard
|
|||
local-check-factory = horizon.hacking.checks.factory
|
||||
|
||||
[testenv:bandit]
|
||||
basepython = python2.7
|
||||
commands = bandit -r horizon openstack_auth openstack_dashboard -n5 -x tests -ll
|
||||
|
||||
[testenv:bandit-baseline]
|
||||
basepython = python2.7
|
||||
envdir = {toxworkdir}/bandit
|
||||
commands = bandit-baseline -r horizon openstack_auth openstack_dashboard -n5 -x tests -ii -ll
|
||||
|
||||
|
|
Loading…
Reference in New Issue