diff options
author | Dongcan Ye <hellochosen@gmail.com> | 2017-03-01 17:16:26 +0800 |
---|---|---|
committer | Dongcan Ye <hellochosen@gmail.com> | 2017-03-01 17:16:26 +0800 |
commit | a0d2e379a8c6c1e5667efc92fd32f168d2241268 (patch) | |
tree | 1cf860d260ec1d5e0fdf93a813d89a0f3b86b05f | |
parent | 1996d2b144e005137d8aacd7f1d523956d3e0560 (diff) |
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
Notes
Notes (review):
Code-Review+2: Antoni Segura Puimedon <celebdor@gmail.com>
Code-Review+2: Liping Mao <limao@cisco.com>
Workflow+1: Liping Mao <limao@cisco.com>
Verified+2: Jenkins
Submitted-by: Jenkins
Submitted-at: Sat, 04 Mar 2017 03:15:51 +0000
Reviewed-on: https://review.openstack.org/439478
Project: openstack/kuryr
Branch: refs/heads/master
-rw-r--r-- | tox.ini | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -25,15 +25,15 @@ basepython = python2.7 | |||
25 | setenv = OS_TEST_PATH=./kuryr/tests/fullstack | 25 | setenv = OS_TEST_PATH=./kuryr/tests/fullstack |
26 | 26 | ||
27 | [testenv:debug] | 27 | [testenv:debug] |
28 | commands = oslo_debug_helper {posargs} | 28 | commands = oslo_debug_helper -t kuryr/tests {posargs} |
29 | 29 | ||
30 | [testenv:debug-py27] | 30 | [testenv:debug-py27] |
31 | basepython = python2.7 | 31 | basepython = python2.7 |
32 | commands = oslo_debug_helper {posargs} | 32 | commands = oslo_debug_helper -t kuryr/tests {posargs} |
33 | 33 | ||
34 | [testenv:debug-py35] | 34 | [testenv:debug-py35] |
35 | basepython = python3.5 | 35 | basepython = python3.5 |
36 | commands = oslo_debug_helper {posargs} | 36 | commands = oslo_debug_helper -t kuryr/tests {posargs} |
37 | 37 | ||
38 | [testenv:pep8] | 38 | [testenv:pep8] |
39 | commands = flake8 | 39 | commands = flake8 |