Fix tox to run functional instead of unit tests

Earlier tox -efunctional command was running unit tests
instead of functional.

This issue is fixed in this patch by explicitly pointing
to functional test code path.

Closes-Bug: #1778698
Change-Id: Ib98b667188fe3245a5ad4a140c0d3b2d3378ef84
This commit is contained in:
nitesh.vanarase 2018-07-03 13:28:14 +05:30 committed by bhagyashris
parent f0d19e8e89
commit 7d0c22524a
1 changed files with 5 additions and 7 deletions

12
tox.ini
View File

@ -20,18 +20,16 @@ commands =
stestr run --slowest {posargs}
[testenv:functional]
setenv = OS_TEST_PATH=./tacker/tests/functional
deps =
{[testenv]deps}
setenv = {[testenv]setenv}
commands =
stestr --test-path=./tacker/tests/functional run --slowest {posargs}
[testenv:dsvm-functional]
basepython = python2.7
setenv = {[testenv]setenv}
{[testenv:functional]setenv}
deps =
{[testenv:functional]deps}
commands =
stestr run --slowest --concurrency 2 {posargs}
stestr --test-path=./tacker/tests/functional run --slowest --concurrency 2 {posargs}
[testenv:debug]
commands = oslo_debug_helper {posargs}