Enable py36 unit tests in tox
With the current super-explicit version of tox.ini, it is not possible to run tox -epy<any version> and have tests discovered and run. This is because the default testenv does not run tests. Therefore, the easiest way to add another version is to simply add another testenv, as done in this change. Python3.6 is the default Python3 on recent distributions so it needs to be present if people are expected to be able to run python3 unit tests before pushing their changes. Change-Id: I728e482af3142bb101fc6bf52ec7926e29a42594
This commit is contained in:
parent
bf5031430a
commit
ad34193059
5
tox.ini
5
tox.ini
@ -37,6 +37,11 @@ commands =
|
||||
stestr run --blacklist-file=tests-py3.txt '{posargs}'
|
||||
env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test_profiler'
|
||||
|
||||
[testenv:py36]
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
stestr run --blacklist-file=tests-py3.txt '{posargs}'
|
||||
env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test_profiler'
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python2.7
|
||||
|
Loading…
Reference in New Issue
Block a user