From 1fb23da2c6d547ca7bc3ae2a9af598120861abdb Mon Sep 17 00:00:00 2001 From: Luong Anh Tuan Date: Thu, 9 Mar 2017 22:40:27 +0700 Subject: [PATCH] Indicating the location tests directory in oslo_debug_helper 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: I5c25c86a79ace5be46c7254cc0ccdc2183303a7c Closes-Bug: #1666560 --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 7c538df073..47b30f6c30 100644 --- a/tox.ini +++ b/tox.ini @@ -21,15 +21,15 @@ commands = bash tools/pretty_tox.sh '{posargs}' [testenv:debug] -commands = oslo_debug_helper {posargs} +commands = oslo_debug_helper -t magnum/tests/unit {posargs} [testenv:debug-py27] basepython = python2.7 -commands = oslo_debug_helper {posargs} +commands = oslo_debug_helper -t magnum/tests/unit {posargs} [testenv:debug-py35] basepython = python3.5 -commands = oslo_debug_helper {posargs} +commands = oslo_debug_helper -t magnum/tests/unit {posargs} [testenv:functional-api] sitepackages = True