Disable automatic config file discovery for pep8 target

When trying to run pep8 target on a system with installed
/etc/neutron/neutron.conf file, neutron-db-manage may fail due to
access denied to the configuration file. This is because oslo.config
attempts to discover configuration files automatically if they are
not passed with --config-file argument.

To disable auto discovery, we pass --config-file to the tool.

Change-Id: I89b5cbae1fcbf662cba6bc724681d0cfeeb0eb9c
This commit is contained in:
Arie Bregman 2015-11-21 12:42:23 +02:00 committed by Ihar Hrachyshka
parent bff5908b92
commit ae573d11bc
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
[DEFAULT]
[database]
connection = 'sqlite://'

View File

@ -26,7 +26,7 @@ deps =
commands = commands =
flake8 flake8
pylint --rcfile=.pylintrc --output-format=colorized {posargs:neutron_lbaas} pylint --rcfile=.pylintrc --output-format=colorized {posargs:neutron_lbaas}
neutron-db-manage --subproject neutron-lbaas --database-connection sqlite:// check_migration neutron-db-manage --subproject neutron-lbaas --config-file neutron_lbaas/tests/etc/neutron.conf check_migration
whitelist_externals = sh whitelist_externals = sh
[testenv:i18n] [testenv:i18n]