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:
Dongcan Ye 2017-02-22 00:08:31 +08:00
parent f5c67cf3e9
commit 1fd2101fa8
1 changed files with 3 additions and 3 deletions

View File

@ -25,15 +25,15 @@ setenv = OS_TEST_PATH=./kuryr_libnetwork/tests/fullstack
passenv = OS_*
[testenv:debug]
commands = oslo_debug_helper {posargs}
commands = oslo_debug_helper -t kuryr_libnetwork/tests {posargs}
[testenv:debug-py27]
basepython = python2.7
commands = oslo_debug_helper {posargs}
commands = oslo_debug_helper -t kuryr_libnetwork/tests {posargs}
[testenv:debug-py34]
basepython = python3.4
commands = oslo_debug_helper {posargs}
commands = oslo_debug_helper -t kuryr_libnetwork/tests {posargs}
[testenv:pep8]
commands = flake8