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: Id57f5c09e12410accd72d05250faeb8dd5da7117 Closes-Bug: #1666560
This commit is contained in:
parent
f5c67cf3e9
commit
1fd2101fa8
6
tox.ini
6
tox.ini
|
@ -25,15 +25,15 @@ setenv = OS_TEST_PATH=./kuryr_libnetwork/tests/fullstack
|
||||||
passenv = OS_*
|
passenv = OS_*
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
commands = oslo_debug_helper {posargs}
|
commands = oslo_debug_helper -t kuryr_libnetwork/tests {posargs}
|
||||||
|
|
||||||
[testenv:debug-py27]
|
[testenv:debug-py27]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
commands = oslo_debug_helper {posargs}
|
commands = oslo_debug_helper -t kuryr_libnetwork/tests {posargs}
|
||||||
|
|
||||||
[testenv:debug-py34]
|
[testenv:debug-py34]
|
||||||
basepython = python3.4
|
basepython = python3.4
|
||||||
commands = oslo_debug_helper {posargs}
|
commands = oslo_debug_helper -t kuryr_libnetwork/tests {posargs}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands = flake8
|
commands = flake8
|
||||||
|
|
Loading…
Reference in New Issue