Add oslo_debug_helper to tox.ini

oslo_debug_helper is used to assist in debugging of python code,
i.e. by adding breakpoints via pdb.

To enable debugging, run tox with the debug environment:
tox -e debug <test_path>

Reference link:
http://docs.openstack.org/developer/oslotest/features.html#debugging-with-oslo-debug-helper

Change-Id: Iae0bc883e41dfa63a8b53bcfe037cc278a3c40ef
This commit is contained in:
Elena Ezhova 2015-07-14 19:16:59 +03:00
parent 355c3bbd9e
commit 6726c253b3
1 changed files with 4 additions and 1 deletions

View File

@ -45,4 +45,7 @@ import_exceptions = oslo_service._i18n
# this also means that pip-missing-reqs must be installed separately, outside
# of the requirements.txt files
deps = pip_missing_reqs
commands = pip-missing-reqs -d --ignore-module=oslo_service* --ignore-module=pkg_resources --ignore-file=oslo_service/tests/* oslo_service
commands = pip-missing-reqs -d --ignore-module=oslo_service* --ignore-module=pkg_resources --ignore-file=oslo_service/tests/* oslo_service
[testenv:debug]
commands = oslo_debug_helper -t oslo_service/tests {posargs}