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
This commit is contained in:
parent
4be702242e
commit
393d686638
4
tox.ini
4
tox.ini
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user