6d002d25bb
cfg.CONF.state_path is set to a random temporary directory in neutron.tests.base:BaseTestCase.setUp. This value was then over written in neutron.tests.unit.__init__. Tests that need to read or pass cfg.CONF.state_path were getting the directory from which the tests were running and not the temporary directory specially created for the current test run. Note that the usage of state_path to set lock_path, dhcp state path and the likes was working as expected, and was not affected by this bug. Closes-Bug: #1363058 Change-Id: Ib45f663fadaf0f3b4a79a0db4128822187b61ecc
20 lines
695 B
Python
20 lines
695 B
Python
# Copyright 2011 OpenStack Foundation.
|
|
# All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
from oslo.config import cfg
|
|
|
|
|
|
cfg.CONF.use_stderr = False
|