Browse Source

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
Dongcan Ye 2 years ago
parent
commit
a0d2e379a8
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      tox.ini

+ 3
- 3
tox.ini View File

@@ -25,15 +25,15 @@ basepython = python2.7
25 25
 setenv = OS_TEST_PATH=./kuryr/tests/fullstack
26 26
 
27 27
 [testenv:debug]
28
-commands = oslo_debug_helper {posargs}
28
+commands = oslo_debug_helper -t kuryr/tests {posargs}
29 29
 
30 30
 [testenv:debug-py27]
31 31
 basepython = python2.7
32
-commands = oslo_debug_helper {posargs}
32
+commands = oslo_debug_helper -t kuryr/tests {posargs}
33 33
 
34 34
 [testenv:debug-py35]
35 35
 basepython = python3.5
36
-commands = oslo_debug_helper {posargs}
36
+commands = oslo_debug_helper -t kuryr/tests {posargs}
37 37
 
38 38
 [testenv:pep8]
39 39
 commands = flake8

Loading…
Cancel
Save