From eeb932c700695914c3159927ec872ef5da62f6d6 Mon Sep 17 00:00:00 2001
From: Eduardo Gonzalez <dabarren@gmail.com>
Date: Thu, 6 Jul 2017 13:41:30 +0100
Subject: [PATCH] Fix bandit tests directory

- Bandit tests are executed in kolla directory,
  in kolla ansible this directory is kolla_ansible.

- Error is silently ignored:
  Files skipped (1):
  	kolla (No such file or directory)

- Also, in ansible/ there is python code in more places
  than only ansible/library, remove library to pass test
  over the whole ansible directory

- Debug tests fails due cannot import tests.
  ImportError: Start directory is not importable: './kolla-ansible/tests'

Change-Id: I0716034c382209b385105bb3a6e0bb7334076e45
---
 tox.ini | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tox.ini b/tox.ini
index 93cf4d0906..584d48171b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,7 +19,7 @@ commands =
   python setup.py test --slowest --testr-args='{posargs}'
 
 [testenv:debug]
-commands = oslo_debug_helper {posargs}
+commands = oslo_debug_helper -t tests {posargs}
 
 [testenv:cover]
 setenv = VIRTUAL_ENV={envdir}
@@ -34,10 +34,10 @@ commands =
   {toxinidir}/tools/run-bashate.sh
   flake8 {posargs}
   python {toxinidir}/tools/validate-all-file.py
-  bandit -r ansible/library kolla tests tools
+  bandit -r ansible kolla_ansible tests tools
 
 [testenv:bandit]
-commands = bandit -r ansible/library kolla tests tools
+commands = bandit -r ansible kolla_ansible tests tools
 
 [testenv:venv]
 commands = {posargs}