summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-glance_git.bb
diff options
context:
space:
mode:
authorVu Tran <vu.tran@windriver.com>2014-06-16 21:44:13 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-06-23 12:54:26 -0400
commit1f578a07a36ec3c0bd40548873d9c7c79822ddac (patch)
tree9676b0f9e20a2495668f48df240ddc6b0a66f8ff /meta-openstack/recipes-devtools/python/python-glance_git.bb
parentbd0c221f230e26adeb693eb626b08757037a8c6a (diff)
downloadmeta-cloud-services-1f578a07a36ec3c0bd40548873d9c7c79822ddac.tar.gz
glance builtin tests config location and missing packages
Many glance built-in testcases failed because they can not find glance configuration files, as these testcases assume that they are run at python site-packages dir. So forcing these failure testcases to look for these confiugration file using absolute path. Also some tests fail because of missing two packages: python-psutil and qpid-python. So add these packages into glance-tests RDEPENDS Signed-off-by: Vu Tran <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-glance_git.bb8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance_git.bb b/meta-openstack/recipes-devtools/python/python-glance_git.bb
index 54aaca2..14ce2bd 100644
--- a/meta-openstack/recipes-devtools/python/python-glance_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-glance_git.bb
@@ -10,6 +10,7 @@ SRCNAME = "glance"
10SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/icehouse \ 10SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/icehouse \
11 file://0001-glance-store-only-load-known-stores-not-all-stores.patch \ 11 file://0001-glance-store-only-load-known-stores-not-all-stores.patch \
12 file://glance.init \ 12 file://glance.init \
13 file://glance-change-builtin-tests-config-location.patch \
13 " 14 "
14 15
15SRCREV="556eebb7780b55af87c0fe49b76593f833ea189a" 16SRCREV="556eebb7780b55af87c0fe49b76593f833ea189a"
@@ -27,6 +28,12 @@ GLANCE_KNOWN_STORES ?= "glance.store.rbd.Store,\
27 glance.store.http.Store" 28 glance.store.http.Store"
28 29
29 30
31do_install_prepend() {
32 sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/functional/__init__.py
33 sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/unit/base.py
34 sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/utils.py
35}
36
30do_install_append() { 37do_install_append() {
31 TEMPLATE_CONF_DIR=${S}${sysconfdir} 38 TEMPLATE_CONF_DIR=${S}${sysconfdir}
32 GLANCE_CONF_DIR=${D}${sysconfdir}/glance 39 GLANCE_CONF_DIR=${D}${sysconfdir}/glance
@@ -153,6 +160,7 @@ RDEPENDS_${SRCNAME} = "${PN} \
153RDEPENDS_${SRCNAME}-api = "${SRCNAME}" 160RDEPENDS_${SRCNAME}-api = "${SRCNAME}"
154RDEPENDS_${SRCNAME}-registry = "${SRCNAME}" 161RDEPENDS_${SRCNAME}-registry = "${SRCNAME}"
155RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}" 162RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}"
163RDEPENDS_${SRCNAME}-tests = "python-psutil qpid-python"
156 164
157INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-registry" 165INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-registry"
158INITSCRIPT_NAME_${SRCNAME}-api = "glance-api" 166INITSCRIPT_NAME_${SRCNAME}-api = "glance-api"