fix tox -e debug target

W/o explicitly set -t parameter for oslo_debug_helper, debug/debug-py27/debug-py35
target failes with following error:
    ImportError: Start directory is not importable:'./kuryr-kubernetes/tests'

Debug target can be usefull in case when somebody wants to use interactive debugger
e.g. by placing following:
import pdb; pdb.set_trace()
into for example TestNestedMacvlanDriver.test_connect
and run
tox -e debug kuryr_kubernetes.tests.unit.cni.test_binding.TestNestedMacvlanDriver.test_connect

Closes-Bug: 1797523
Change-Id: I9d35815be7836a06dda4de1abfa6a8cd5b022457
Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
This commit is contained in:
Alexey Perevalov 2018-10-11 19:39:10 +03:00
parent a85a02744e
commit 51dfd98ee5
1 changed files with 3 additions and 3 deletions

View File

@ -22,15 +22,15 @@ setenv = OS_TEST_PATH=./kuryr/tests/fullstack
passenv = OS_*
[testenv:debug]
commands = oslo_debug_helper {posargs}
commands = oslo_debug_helper -t kuryr_kubernetes/tests {posargs}
[testenv:debug-py27]
basepython = python2.7
commands = oslo_debug_helper {posargs}
commands = oslo_debug_helper -t kuryr_kubernetes/tests {posargs}
[testenv:debug-py35]
basepython = python3.5
commands = oslo_debug_helper {posargs}
commands = oslo_debug_helper -t kuryr_kubernetes/tests {posargs}
[testenv:pep8]
basepython = python3