From 1fd2101fa8067546722afa0041e3df55d180792e Mon Sep 17 00:00:00 2001 From: Dongcan Ye Date: Wed, 22 Feb 2017 00:08:31 +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: Id57f5c09e12410accd72d05250faeb8dd5da7117 Closes-Bug: #1666560 --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index f790fa05..68d9bea8 100644 --- a/tox.ini +++ b/tox.ini @@ -25,15 +25,15 @@ setenv = OS_TEST_PATH=./kuryr_libnetwork/tests/fullstack passenv = OS_* [testenv:debug] -commands = oslo_debug_helper {posargs} +commands = oslo_debug_helper -t kuryr_libnetwork/tests {posargs} [testenv:debug-py27] basepython = python2.7 -commands = oslo_debug_helper {posargs} +commands = oslo_debug_helper -t kuryr_libnetwork/tests {posargs} [testenv:debug-py34] basepython = python3.4 -commands = oslo_debug_helper {posargs} +commands = oslo_debug_helper -t kuryr_libnetwork/tests {posargs} [testenv:pep8] commands = flake8