Add debug to tox enviroment

We can simply run `tox -e debug <test_name>` to debug test.

Change-Id: Ibb46d95eb44f929b27cec672095cf0c70dcfa9d8
This commit is contained in:
zhurong 2017-01-17 10:39:07 +08:00
parent 81bfc06bc0
commit 58bfa24cec
1 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,7 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = bash tools/pretty_tox.sh '{posargs}'
whitelist_externals = bash
find
[testenv:py27-mitaka]
install_command = pip install -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/mitaka {opts} {packages}
@ -31,6 +32,11 @@ commands = {posargs}
[testenv:cover]
commands = {toxinidir}/tools/cover.sh {posargs}
[testenv:debug]
commands =
find . -type f -name "*.pyc" -delete
oslo_debug_helper {posargs}
[testenv:docs]
commands = python setup.py build_sphinx