From c14c8c39057f9701f2bdef870103b283ef066af2 Mon Sep 17 00:00:00 2001 From: jolie Date: Fri, 10 Feb 2017 11:22:51 +0800 Subject: [PATCH] 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 Reference link: http://docs.openstack.org/developer/oslotest/features.html#debugging-with-oslo-debug-helper Change-Id: I0439fa7e3923a4d3f8984024f2d4959c38563686 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index cad5290..b11cdc5 100644 --- a/tox.ini +++ b/tox.ini @@ -29,6 +29,9 @@ commands = {posargs} [testenv:cover] commands = python setup.py testr --coverage --testr-args='{posargs}' +[testenv:debug] +commands = oslo_debug_helper -t senlinclient/tests {posargs} + [testenv:docs] commands= python setup.py build_sphinx