]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use a temp dir for CONF.state_path
authorJoe Gordon <joe.gordon0@gmail.com>
Tue, 1 Apr 2014 22:06:36 +0000 (15:06 -0700)
committerJoe Gordon <joe.gordon0@gmail.com>
Tue, 1 Apr 2014 22:51:44 +0000 (15:51 -0700)
commitac2718c4aa7b6eb0c0e82df93cf59d890432d652
tree50029becce9f5f5ed0c6bc56fc624f8e25fc8e93
parentb4b3c973a30beb7399ae505f31fd07dc4f2d5030
Use a temp dir for CONF.state_path

external_pids will defaults to $state_path(/var/lib/neutron)/external/pids
which isn't accessible when running unit tests so use a tempdir for
CONF.state_path. This bug arose when oslo.config 1.3.0 came out which
fixed bug #1282250 (I4324bda6f3de3cdf05f8eb3cf16052c04018dec8) and
caused this issue.

Change-Id: I253c5ea85c51eff94399da0b9462d10a9c509a0f
Closes-Bug: #1301027
neutron/tests/base.py