From 197ec92e7a97b0a13b49b3000263759ea7846b4b Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Thu, 26 Jun 2014 10:16:02 -0400 Subject: neutron test: nec plugin extensions location Some of the neutron built-in testcases failed because they can not find nec plugin extensions based on the given relative path. So forcing these failure testcases to look for these extensions using absolute path. Signed-off-by: Vu Tran --- ...utron-test-nec-plugin-extensions-location.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-neutron/neutron-test-nec-plugin-extensions-location.patch (limited to 'meta-openstack/recipes-devtools/python/python-neutron') diff --git a/meta-openstack/recipes-devtools/python/python-neutron/neutron-test-nec-plugin-extensions-location.patch b/meta-openstack/recipes-devtools/python/python-neutron/neutron-test-nec-plugin-extensions-location.patch new file mode 100644 index 0000000..bf54c79 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-neutron/neutron-test-nec-plugin-extensions-location.patch @@ -0,0 +1,24 @@ +neutron test: nec plugin extensions location + +Some of the neutron built-in testcases failed +because they can not find nec plugin extensions +based on the given the relative path. + +So forcing these failure testcases to look for +these extensions using absolute path. + +Signed-off-by: Vu Tran + +diff --git a/neutron/tests/unit/nec/test_nec_plugin.py b/neutron/tests/unit/nec/test_nec_plugin.py +index 2f913ca..1c3f0ce 100644 +--- a/neutron/tests/unit/nec/test_nec_plugin.py ++++ b/neutron/tests/unit/nec/test_nec_plugin.py +@@ -37,7 +37,7 @@ OFC_MANAGER = 'neutron.plugins.nec.nec_plugin.ofc_manager.OFCManager' + NOTIFIER = 'neutron.plugins.nec.nec_plugin.NECPluginV2AgentNotifierApi' + NEC_PLUGIN_INI = """ + [DEFAULT] +-api_extensions_path = neutron/plugins/nec/extensions ++api_extensions_path = %PYTHON_SITEPACKAGES_DIR%/neutron/plugins/nec/extensions + [OFC] + driver = neutron.tests.unit.nec.stub_ofc_driver.StubOFCDriver + enable_packet_filter = False -- cgit v1.2.3-54-g00ecf