summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongcan Ye <hellochosen@gmail.com>2017-03-01 17:16:26 +0800
committerDongcan Ye <hellochosen@gmail.com>2017-03-01 17:16:26 +0800
commita0d2e379a8c6c1e5667efc92fd32f168d2241268 (patch)
tree1cf860d260ec1d5e0fdf93a813d89a0f3b86b05f
parent1996d2b144e005137d8aacd7f1d523956d3e0560 (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.ini6
1 files changed, 3 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index a2ce8ca..abf9bda 100644
--- a/tox.ini
+++ b/tox.ini
@@ -25,15 +25,15 @@ basepython = python2.7
25setenv = OS_TEST_PATH=./kuryr/tests/fullstack 25setenv = OS_TEST_PATH=./kuryr/tests/fullstack
26 26
27[testenv:debug] 27[testenv:debug]
28commands = oslo_debug_helper {posargs} 28commands = oslo_debug_helper -t kuryr/tests {posargs}
29 29
30[testenv:debug-py27] 30[testenv:debug-py27]
31basepython = python2.7 31basepython = python2.7
32commands = oslo_debug_helper {posargs} 32commands = oslo_debug_helper -t kuryr/tests {posargs}
33 33
34[testenv:debug-py35] 34[testenv:debug-py35]
35basepython = python3.5 35basepython = python3.5
36commands = oslo_debug_helper {posargs} 36commands = oslo_debug_helper -t kuryr/tests {posargs}
37 37
38[testenv:pep8] 38[testenv:pep8]
39commands = flake8 39commands = flake8