]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Explicitly import state_path opt in tests.base
authorJoe Gordon <joe.gordon0@gmail.com>
Wed, 2 Apr 2014 18:25:27 +0000 (11:25 -0700)
committerThomas Goirand <thomas@goirand.fr>
Mon, 9 Jun 2014 15:06:55 +0000 (23:06 +0800)
This wasn't explicitly needed in the unit tests because
neutron.common.config was already loaded, but this broke for the
functional tests (which are non-voting) so add a CONF.import_opt line so
functional tests know where to find the definition for state_path.

Closes-Bug: #1322440

Change-Id: I5b87a75317e2ba670adaa59b251bfa860920fd61
(cherry picked from commit f6dfc3a901ce7536a72e6159583051e9bcaf8d8f)

neutron/tests/base.py

index a65e89cabcbdef54acdb4d42be2405b5e7b10921..69b1b84bb47dbb26845409b3511de3b699eef65a 100644 (file)
@@ -36,6 +36,7 @@ from neutron.tests import post_mortem_debug
 
 
 CONF = cfg.CONF
+CONF.import_opt('state_path', 'neutron.common.config')
 TRUE_STRING = ['True', '1']
 LOG_FORMAT = "%(asctime)s %(levelname)8s [%(name)s] %(message)s"