From a0d2e379a8c6c1e5667efc92fd32f168d2241268 Mon Sep 17 00:00:00 2001 From: Dongcan Ye Date: Wed, 1 Mar 2017 17:16:26 +0800 Subject: [PATCH] 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 --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index a2ce8ca0..abf9bda5 100644 --- a/tox.ini +++ b/tox.ini @@ -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