summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJulian Edwards <bigjools@gmail.com>2017-03-31 14:29:19 +1000
committerJulian Edwards <bigjools@gmail.com>2017-03-31 14:33:55 +1000
commit393d686638c2ed8216a43dd767dda0315fa342c2 (patch)
tree43f40ed29d7f027ca3b63eadc5562b73f9a51009 /tox.ini
parent4be702242eb48e09eb77e46d997908b7c519127d (diff)
downloadironic-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.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index af9e2240..647bb08b 100644
--- a/tox.ini
+++ b/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