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
This commit is contained in:
Eduardo Gonzalez 2017-07-06 13:41:30 +01:00
parent 4510c525a6
commit eeb932c700
1 changed files with 3 additions and 3 deletions

View File

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