소스 검색

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]

Loading…
취소
저장