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: I2848b8c9bdf94e2f9b645d2785e32d888a84636a
Closes-Bug: #1666560
This commit is contained in:
Dongcan Ye 2017-03-01 17:16:26 +08:00
parent 1996d2b144
commit a0d2e379a8
1 changed files with 3 additions and 3 deletions

View File

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