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:
parent
4510c525a6
commit
eeb932c700
6
tox.ini
6
tox.ini
@ -19,7 +19,7 @@ commands =
|
|||||||
python setup.py test --slowest --testr-args='{posargs}'
|
python setup.py test --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
commands = oslo_debug_helper {posargs}
|
commands = oslo_debug_helper -t tests {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
@ -34,10 +34,10 @@ commands =
|
|||||||
{toxinidir}/tools/run-bashate.sh
|
{toxinidir}/tools/run-bashate.sh
|
||||||
flake8 {posargs}
|
flake8 {posargs}
|
||||||
python {toxinidir}/tools/validate-all-file.py
|
python {toxinidir}/tools/validate-all-file.py
|
||||||
bandit -r ansible/library kolla tests tools
|
bandit -r ansible kolla_ansible tests tools
|
||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
commands = bandit -r ansible/library kolla tests tools
|
commands = bandit -r ansible kolla_ansible tests tools
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user