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: Ifb290b00e79f9d5236d84163c13571dc74cea4e0 Closes-Bug: #1666560
This commit is contained in:
committed by
Tuan Luong-Anh
parent
5fb299dc21
commit
0b2bcf9ed6
2
tox.ini
2
tox.ini
@@ -42,7 +42,7 @@ commands =
|
|||||||
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
commands = oslo_debug_helper {posargs}
|
commands = oslo_debug_helper -t neutron_lib/tests/unit {posargs}
|
||||||
|
|
||||||
[testenv:api-report]
|
[testenv:api-report]
|
||||||
commands =
|
commands =
|
||||||
|
|||||||
Reference in New Issue
Block a user