Indicating the location tests directory in oslo_debug_helper
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: I5c25c86a79ace5be46c7254cc0ccdc2183303a7c Closes-Bug: #1666560
This commit is contained in:
6
tox.ini
6
tox.ini
@@ -21,15 +21,15 @@ commands =
|
||||
bash tools/pretty_tox.sh '{posargs}'
|
||||
|
||||
[testenv:debug]
|
||||
commands = oslo_debug_helper {posargs}
|
||||
commands = oslo_debug_helper -t magnum/tests/unit {posargs}
|
||||
|
||||
[testenv:debug-py27]
|
||||
basepython = python2.7
|
||||
commands = oslo_debug_helper {posargs}
|
||||
commands = oslo_debug_helper -t magnum/tests/unit {posargs}
|
||||
|
||||
[testenv:debug-py35]
|
||||
basepython = python3.5
|
||||
commands = oslo_debug_helper {posargs}
|
||||
commands = oslo_debug_helper -t magnum/tests/unit {posargs}
|
||||
|
||||
[testenv:functional-api]
|
||||
sitepackages = True
|
||||
|
||||
Reference in New Issue
Block a user