From 656d2bcddfba4c2c1a0c26b774b1e75e672e548b Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Tue, 16 Jan 2018 10:14:46 +0000 Subject: [PATCH] Enable py36 unit tests in tox With the current super-explicit version of tox.ini, it is not possible to run tox -epy 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 --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tox.ini b/tox.ini index c8556350b..9cbc7f4e8 100644 --- a/tox.ini +++ b/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