From a0f8c26b86086b522310a464274eba0fe9ce0a5c Mon Sep 17 00:00:00 2001 From: Vu Cong Tuan Date: Mon, 25 Jun 2018 09:23:34 +0700 Subject: [PATCH] Remove unnecessary pyNN testenv sections According to [1], the pyNN factors automatically set basepython unless explicitly requested otherwise. This patch moves 'commands' attribute up into the 'testenv' section, "testenv:pyNN" sections are unnecessary and also should be removed. [1] https://github.com/tox-dev/tox/issues/477 Change-Id: I535188debcf89c91c887d0026bbf2157333ae2a4 --- tox.ini | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/tox.ini b/tox.ini index b8bb5745..77f297d9 100644 --- a/tox.ini +++ b/tox.ini @@ -11,6 +11,7 @@ setenv = deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt whitelist_externals = bash +commands = stestr run --black-regex ".tests.functional" {posargs} [tox:jenkins] downloadcache = ~/cache/pip @@ -23,15 +24,6 @@ commands = flake8 basepython = python3 commands = {posargs} -[testenv:py27] -commands = - stestr run --black-regex ".tests.functional" '{posargs}' - -[testenv:py35] -basepython = python3 -commands = - stestr run --black-regex ".tests.functional" '{posargs}' - [testenv:functional] basepython = python2.7 setenv = @@ -39,14 +31,6 @@ setenv = commands = stestr run --black-regex ".tests.unit" '{posargs}' -[testenv:cover] -basepython = python3 -commands = - coverage erase - python setup.py testr --coverage --testr-args='--concurrency=1 {posargs}' - coverage combine - coverage html --include='os_vif/*' -d covhtml -i - [testenv:docs] basepython = python3 commands = python setup.py build_sphinx @@ -91,5 +75,3 @@ deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt -commands = - stestr run --black-regex ".tests.functional" '{posargs}'