From 5f122c0665333b533fa5500a95777c3c6d806d29 Mon Sep 17 00:00:00 2001 From: Luong Anh Tuan Date: Thu, 9 Mar 2017 23:48:04 +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: Iff8d4347b4d16a646fb89e38ba4eaeb950377053 Closes-Bug: #1666560 --- scripts/rally-runners/tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rally-runners/tox.ini b/scripts/rally-runners/tox.ini index 8c548e3..846cd73 100644 --- a/scripts/rally-runners/tox.ini +++ b/scripts/rally-runners/tox.ini @@ -25,7 +25,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 tests {posargs} [flake8] # E123, E125 skipped as they are invalid PEP-8.