diff options
author | Brant Knudson <bknudson@us.ibm.com> | 2014-01-06 15:16:52 -0600 |
---|---|---|
committer | Brant Knudson <bknudson@us.ibm.com> | 2014-01-06 15:16:52 -0600 |
commit | 67718a0322948827ebc1516c56a6fa2061785d19 (patch) | |
tree | 85e00f4bcc62d75ae39f42f11a165c543f5a0a99 /tox.ini | |
parent | 01dc81aa148adaa127281f197047636cf2d2c898 (diff) | |
download | python-keystoneclient-67718a0322948827ebc1516c56a6fa2061785d19.tar.gz |
Debug env for tox
Running a test with pdb was difficult because testr captures
output and causes pdb prompt to quit.
Tips for how to run testr with debug are provided here:
https://wiki.openstack.org/wiki/Testr#Debugging_.28pdb.29_Tests
This change puts these commands into a debug env in tox.ini so
you can do a command like
tox -e debug test_auth_token_middleware
or, for more granularity:
tox -e debug keystone.tests.test_sql_migrate_extensions.EndpointFilterExtension
tox -e debug keystone.tests.test_sql_migrate_extensions.EndpointFilterExtension.test_downgrade
and when it hits your breakpoint you'll get the debug prompt.
This same change was made to keystone in commit c8302509 .
Change-Id: I2b5dc81f4652dc89ecbcc7c785245a81cf77a1ca
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -29,6 +29,11 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' [tox:jenkins] downloadcache = ~/cache/pip +[testenv:debug] + +commands = + {toxinidir}/tools/debug_helper.sh {posargs} + [flake8] # F821: undefined name # H304: no relative imports |