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
This commit is contained in:
Luong Anh Tuan
2017-03-09 22:40:27 +07:00
parent c0c5af6a6a
commit 1fb23da2c6

View File

@@ -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