Pass located tests directory in oslo debug
According to [1], we can passing a "-t" argument to oslo_debug_helper to indicate the directory where tests are located. This will solves ImportError exception. [1] https://docs.openstack.org/developer/oslotest/features.html Change-Id: Iea41d487e9028fdf92450c0ee44ef2f6c27eab6f
This commit is contained in:
parent
8771244722
commit
47e93ecddf
6
tox.ini
6
tox.ini
@ -23,15 +23,15 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees \
|
||||
commands = sphinx-build -a -E -W -d install-guide/build/doctrees -b html install-guide/source install-guide/build/html
|
||||
|
||||
[testenv:debug]
|
||||
commands = oslo_debug_helper {posargs}
|
||||
commands = oslo_debug_helper -t meteos/tests {posargs}
|
||||
|
||||
[testenv:debug-py27]
|
||||
basepython = python2.7
|
||||
commands = oslo_debug_helper {posargs}
|
||||
commands = oslo_debug_helper -t meteos/tests {posargs}
|
||||
|
||||
[testenv:debug-py35]
|
||||
basepython = python3.5
|
||||
commands = oslo_debug_helper {posargs}
|
||||
commands = oslo_debug_helper -t meteos/tests {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
commands = flake8 {posargs}
|
||||
|
Loading…
Reference in New Issue
Block a user