Update the tox.ini for functional
Co-Authored-By: jacky06 <zhang.min@99cloud.net> Change-Id: I56c6db88adea8bc6083f227765f712d715f95a2a
This commit is contained in:
parent
98dca2e8fb
commit
95489177d8
12
tox.ini
12
tox.ini
|
@ -23,6 +23,9 @@ commands = stestr run {posargs}
|
|||
[testenv:py36]
|
||||
commands = stestr run {posargs}
|
||||
|
||||
[testenv:py37]
|
||||
commands = stestr run {posargs}
|
||||
|
||||
[testenv:debug]
|
||||
basepython = python3
|
||||
description = Allows to run unit-test with debug mode enabled
|
||||
|
@ -36,16 +39,14 @@ commands =
|
|||
oslo_debug_helper -t {toxinidir}/kolla_cli/tests {posargs}
|
||||
|
||||
[testenv:functional]
|
||||
whitelist_externals =
|
||||
{[testenv]whitelist_externals}
|
||||
{toxinidir}/kolla_cli/tests/functional/functional_test_setup.sh
|
||||
setenv =
|
||||
OS_TEST_PATH = ./kolla_cli/tests/functional
|
||||
KOLLA_ETC = /tmp/kollaclitest/etc/kolla
|
||||
KOLLA_HOME = /tmp/kollaclitest/usr/share/kolla-ansible
|
||||
KOLLA_TOOLS_DIR = {toxinidir}/tools
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
|
||||
find . -type d -name "__pycache__" -delete
|
||||
{toxinidir}/kolla_cli/tests/functional/functional_test_setup.sh
|
||||
bash -c "pushd /tmp/kollaclitest/usr/share/kolla-ansible/git; python setup.py install; popd"
|
||||
stestr run {posargs} --serial
|
||||
|
@ -54,19 +55,16 @@ commands =
|
|||
basepython = python2.7
|
||||
setenv = {[testenv:functional]setenv}
|
||||
commands = {[testenv:functional]commands}
|
||||
whitelist_externals = {[testenv:functional]whitelist_externals}
|
||||
|
||||
[testenv:functional-py36]
|
||||
basepython = python3.6
|
||||
setenv = {[testenv:functional]setenv}
|
||||
commands = {[testenv:functional]commands}
|
||||
whitelist_externals = {[testenv:functional]whitelist_externals}
|
||||
|
||||
[testenv:functional-py37]
|
||||
basepython = python3.7
|
||||
setenv = {[testenv:functional]setenv}
|
||||
commands = {[testenv:functional]commands}
|
||||
whitelist_externals = {[testenv:functional]whitelist_externals}
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
|
|
Loading…
Reference in New Issue