diff options
author | Vu Tran <vu.tran@windriver.com> | 2014-06-26 10:16:02 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-07-17 00:09:50 -0400 |
commit | 197ec92e7a97b0a13b49b3000263759ea7846b4b (patch) | |
tree | a58839a165e220c54a65ecead3905c6b3ffebf3d /meta-openstack/recipes-devtools/python/python-neutron | |
parent | faa7e3b7caed93e046726ca80510f60c09ed6b98 (diff) | |
download | meta-cloud-services-197ec92e7a97b0a13b49b3000263759ea7846b4b.tar.gz |
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 <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-neutron')
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-neutron/neutron-test-nec-plugin-extensions-location.patch | 24 |
1 files changed, 24 insertions, 0 deletions
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 @@ | |||
1 | neutron test: nec plugin extensions location | ||
2 | |||
3 | Some of the neutron built-in testcases failed | ||
4 | because they can not find nec plugin extensions | ||
5 | based on the given the relative path. | ||
6 | |||
7 | So forcing these failure testcases to look for | ||
8 | these extensions using absolute path. | ||
9 | |||
10 | Signed-off-by: Vu Tran <vu.tran@windriver.com> | ||
11 | |||
12 | diff --git a/neutron/tests/unit/nec/test_nec_plugin.py b/neutron/tests/unit/nec/test_nec_plugin.py | ||
13 | index 2f913ca..1c3f0ce 100644 | ||
14 | --- a/neutron/tests/unit/nec/test_nec_plugin.py | ||
15 | +++ b/neutron/tests/unit/nec/test_nec_plugin.py | ||
16 | @@ -37,7 +37,7 @@ OFC_MANAGER = 'neutron.plugins.nec.nec_plugin.ofc_manager.OFCManager' | ||
17 | NOTIFIER = 'neutron.plugins.nec.nec_plugin.NECPluginV2AgentNotifierApi' | ||
18 | NEC_PLUGIN_INI = """ | ||
19 | [DEFAULT] | ||
20 | -api_extensions_path = neutron/plugins/nec/extensions | ||
21 | +api_extensions_path = %PYTHON_SITEPACKAGES_DIR%/neutron/plugins/nec/extensions | ||
22 | [OFC] | ||
23 | driver = neutron.tests.unit.nec.stub_ofc_driver.StubOFCDriver | ||
24 | enable_packet_filter = False | ||