From dfb4f0b78de27da78b79824d1cf042a5b830a40f Mon Sep 17 00:00:00 2001 From: iswarya_vakati Date: Mon, 13 Mar 2017 15:12:47 +0530 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 Closes-Bug: #1666560 Change-Id: Ia85c2b5ac21ebfdb098c1c0d8f6ac984cb2d6e4d --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 237df7c4e..ab36b6644 100644 --- a/tox.ini +++ b/tox.ini @@ -26,7 +26,7 @@ commands = python setup.py test --coverage --testr-args='{posargs}' commands = python setup.py build_sphinx [testenv:debug] -commands = oslo_debug_helper {posargs} +commands = oslo_debug_helper -t bifrost/tests {posargs} [testenv:releasenotes] commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html