summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python')
-rw-r--r--meta-openstack/recipes-devtools/python/python-neutron/neutron-test-nec-plugin-extensions-location.patch24
-rw-r--r--meta-openstack/recipes-devtools/python/python-neutron_git.bb3
2 files changed, 27 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 @@
1neutron test: nec plugin extensions location
2
3Some of the neutron built-in testcases failed
4because they can not find nec plugin extensions
5based on the given the relative path.
6
7So forcing these failure testcases to look for
8these extensions using absolute path.
9
10Signed-off-by: Vu Tran <vu.tran@windriver.com>
11
12diff --git a/neutron/tests/unit/nec/test_nec_plugin.py b/neutron/tests/unit/nec/test_nec_plugin.py
13index 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
diff --git a/meta-openstack/recipes-devtools/python/python-neutron_git.bb b/meta-openstack/recipes-devtools/python/python-neutron_git.bb
index 3973b63..c1c67d5 100644
--- a/meta-openstack/recipes-devtools/python/python-neutron_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-neutron_git.bb
@@ -17,6 +17,7 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
17 file://metadata_agent.ini \ 17 file://metadata_agent.ini \
18 file://neutron-dhcp-agent-netns-cleanup.cron \ 18 file://neutron-dhcp-agent-netns-cleanup.cron \
19 file://uuid_wscheck.patch \ 19 file://uuid_wscheck.patch \
20 file://neutron-test-nec-plugin-extensions-location.patch \
20 " 21 "
21SRCREV="a8417d78c2675a2ceb5dbfcee70948a88d69e747" 22SRCREV="a8417d78c2675a2ceb5dbfcee70948a88d69e747"
22PV="2013.2.3+git${SRCPV}" 23PV="2013.2.3+git${SRCPV}"
@@ -104,6 +105,8 @@ do_install_append() {
104 -i ${NEUTRON_CONF_DIR}/metadata_agent.ini 105 -i ${NEUTRON_CONF_DIR}/metadata_agent.ini
105 106
106 cp run_tests.sh ${NEUTRON_CONF_DIR} 107 cp run_tests.sh ${NEUTRON_CONF_DIR}
108
109 sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${D}${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/tests/unit/nec/test_nec_plugin.py
107} 110}
108 111
109pkg_postinst_${SRCNAME}-setup () { 112pkg_postinst_${SRCNAME}-setup () {