diff options
author | Julian Edwards <bigjools@gmail.com> | 2017-03-31 14:29:19 +1000 |
---|---|---|
committer | Julian Edwards <bigjools@gmail.com> | 2017-03-31 14:33:55 +1000 |
commit | 393d686638c2ed8216a43dd767dda0315fa342c2 (patch) | |
tree | 43f40ed29d7f027ca3b63eadc5562b73f9a51009 /tox.ini | |
parent | 4be702242eb48e09eb77e46d997908b7c519127d (diff) | |
download | ironic-python-agent-393d686638c2ed8216a43dd767dda0315fa342c2.tar.gz |
Add a debug tox environment
Uses oslo_debug_helper to run up the tests in single-threaded
mode so that pdb works.
Examples:
# Run all tests.
tox -e debug
# Run a specific test or set of tests.
tox -e debug module.to.my.test
Change-Id: I272f6aa34bafcd7ac2d2828cbd6dd48e0e615b79
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -43,6 +43,10 @@ commands = setenv = PYTHONHASHSEED=0 commands = {posargs:} +[testenv:debug] +envdir = {toxworkdir}/venv +commands = oslo_debug_helper -t ironic_python_agent/tests/unit {posargs} + [testenv:devenv] envdir = devenv usedevelop = True |