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.bb7
2 files changed, 2 insertions, 29 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
deleted file mode 100644
index bf54c79..0000000
--- a/meta-openstack/recipes-devtools/python/python-neutron/neutron-test-nec-plugin-extensions-location.patch
+++ /dev/null
@@ -1,24 +0,0 @@
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 1a5a9b2..3c64d61 100644
--- a/meta-openstack/recipes-devtools/python/python-neutron_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-neutron_git.bb
@@ -15,14 +15,13 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=master \
15 file://metadata_agent.ini \ 15 file://metadata_agent.ini \
16 file://neutron-dhcp-agent-netns-cleanup.cron \ 16 file://neutron-dhcp-agent-netns-cleanup.cron \
17 file://0001-neutron.conf-jumpstart-nova-state-reporting-configur.patch \ 17 file://0001-neutron.conf-jumpstart-nova-state-reporting-configur.patch \
18 file://neutron-test-nec-plugin-extensions-location.patch \
19 " 18 "
20 19
21# TBD: update or drop 20# TBD: update or drop
22# file://uuid_wscheck.patch 21# file://uuid_wscheck.patch
23 22
24SRCREV="1948efa261e47b08e2cde4828321614ee6e169be" 23SRCREV = "e86077e8452891cc176841dd6b6316831e12abc1"
25PV="2015.1.0b2+git${SRCPV}" 24PV = "2015.1.0b3+git${SRCPV}"
26 25
27S = "${WORKDIR}/git" 26S = "${WORKDIR}/git"
28 27
@@ -137,8 +136,6 @@ do_install_append() {
137 sed -i '/\[keystone_authtoken\]/aidentity_uri=http://127.0.0.1:8081/keystone/admin/' ${NEUTRON_CONF_DIR}/neutron.conf 136 sed -i '/\[keystone_authtoken\]/aidentity_uri=http://127.0.0.1:8081/keystone/admin/' ${NEUTRON_CONF_DIR}/neutron.conf
138 137
139 cp run_tests.sh ${NEUTRON_CONF_DIR} 138 cp run_tests.sh ${NEUTRON_CONF_DIR}
140
141 sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${D}${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/tests/unit/nec/test_nec_plugin.py
142} 139}
143 140
144pkg_postinst_${SRCNAME}-setup () { 141pkg_postinst_${SRCNAME}-setup () {