ソースを参照

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
(cherry picked from commit ae573d11bc)
tags/7.0.1
Arie Bregman 4年前
コミット
98c2587f47
2個のファイルの変更5行の追加1行の削除
  1. +4
    -0
      neutron_lbaas/tests/etc/neutron.conf
  2. +1
    -1
      tox.ini

+ 4
- 0
neutron_lbaas/tests/etc/neutron.conf ファイルの表示

@@ -0,0 +1,4 @@
[DEFAULT]

[database]
connection = 'sqlite://'

+ 1
- 1
tox.ini ファイルの表示

@@ -26,7 +26,7 @@ deps =
commands =
flake8
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

[testenv:i18n]

読み込み中…
キャンセル
保存