]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix state_path in tests
authorAssaf Muller <amuller@redhat.com>
Fri, 29 Aug 2014 11:44:10 +0000 (14:44 +0300)
committerAssaf Muller <amuller@redhat.com>
Fri, 29 Aug 2014 14:42:07 +0000 (17:42 +0300)
commitdcd3fb9da5ba64b5ae56a97c147f125bb7e33c4c
treeea842aed60056da50af265b5cb87dd54914c74c9
parent66730877ee8c4389550295c77db88029e3b8e605
Fix state_path in tests

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
neutron/tests/unit/__init__.py
neutron/tests/unit/test_config.py