From 393d686638c2ed8216a43dd767dda0315fa342c2 Mon Sep 17 00:00:00 2001 From: Julian Edwards Date: Fri, 31 Mar 2017 14:29:19 +1000 Subject: [PATCH] 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 --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index af9e22407..647bb08b7 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