Add debug env into tox

Change-Id: Id33099d16a03babbc8474a7b72fc958e848f41f5
This commit is contained in:
gujin 2019-07-11 17:06:41 +08:00
parent e9c019f382
commit aa955b7fe8
2 changed files with 13 additions and 0 deletions

View File

@ -14,6 +14,7 @@ fixtures>=0.3.14
mock>=1.0
mypy>=0.6; python_version>'2.7'
oslo.utils>=3.33.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
pexpect>=4.0.1
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD

12
tox.ini
View File

@ -23,6 +23,18 @@ commands = stestr run {posargs}
[testenv:py36]
commands = stestr run {posargs}
[testenv:debug]
basepython = python3
description = Allows to run unit-test with debug mode enabled
setenv =
KOLLA_ETC = /tmp/kollaclitest/etc/kolla
KOLLA_HOME = /tmp/kollaclitest/usr/share/kolla-ansible
KOLLA_TOOLS_DIR = {toxinidir}/tools
commands =
{toxinidir}/kolla_cli/tests/functional/functional_test_setup.sh
bash -c "pushd /tmp/kollaclitest/usr/share/kolla-ansible/git; python setup.py install; popd"
oslo_debug_helper -t {toxinidir}/kolla_cli/tests {posargs}
[testenv:functional]
whitelist_externals =
{[testenv]whitelist_externals}