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:
parent
bff5908b92
commit
ae573d11bc
|
@ -0,0 +1,4 @@
|
||||||
|
[DEFAULT]
|
||||||
|
|
||||||
|
[database]
|
||||||
|
connection = 'sqlite://'
|
2
tox.ini
2
tox.ini
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue