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.
Reviewed: https:/ /review. openstack. org/117759 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=dcd3fb9da5b a64b5ae56a97c14 7f125bb7e33c4c
Committed: https:/
Submitter: Jenkins
Branch: master
commit dcd3fb9da5ba64b 5ae56a97c147f12 5bb7e33c4c
Author: Assaf Muller <email address hidden>
Date: Fri Aug 29 14:44:10 2014 +0300
Fix state_path in tests
cfg. CONF.state_ path is set to a random temporary directory tests.base: BaseTestCase. setUp. This value was then tests.unit. __init_ _. Tests that need
in neutron.
over written in neutron.
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 3b4a79a0db41288 22187b61ecc
Change-Id: Ib45f663fadaf0f