summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Chen <chenrui.momo@gmail.com>2017-01-20 17:48:11 +0800
committerRui Chen <chenrui.momo@gmail.com>2017-01-22 06:30:15 +0000
commitfd0ac815de9a8ca528434029d4e41c99e3b5984e (patch)
treed13d9ff40e4696a2221296739f6f70d3ed96ddfe
parent607f31d3db924517c18fd192239e5ef5963e17f3 (diff)
downloadpython-openstackclient-fd0ac815de9a8ca528434029d4e41c99e3b5984e.tar.gz
Functional tests debug support
Pass OS_* options into tox debug venv in order to debug functional tests in local, and install ipdb to make code-debug more convenient. Change-Id: Ib926948f2b9a52921cf7487fe16ef716481e3ceb
-rw-r--r--tox.ini5
1 files changed, 4 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 130b32fe..9d18cb4e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -73,7 +73,10 @@ commands =
coverage report
[testenv:debug]
-commands = oslo_debug_helper -t openstackclient/tests {posargs}
+passenv = OS_*
+commands =
+ pip install -q -U ipdb
+ oslo_debug_helper -t openstackclient/tests {posargs}
[testenv:docs]
commands = python setup.py build_sphinx