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 15:55:45 -0400
commiteb66359572b003e3babf58fca317363cd06a16c0 (patch)
tree4bb8715863542711b13f2db94a6f9d4a4cad8652 /meta-openstack/recipes-devtools/python/python-glance_git.bb
parent89e623cce5a8810197602ae4ab0993e33b7a3bf6 (diff)
downloadmeta-cloud-services-eb66359572b003e3babf58fca317363cd06a16c0.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 e9e8353..57ad34c 100644
--- a/meta-openstack/recipes-devtools/python/python-glance_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-glance_git.bb
@@ -9,6 +9,7 @@ SRCNAME = "glance"
9 9
10SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \ 10SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
11 file://glance.init \ 11 file://glance.init \
12 file://glance-change-builtin-tests-config-location.patch \
12 " 13 "
13 14
14SRCREV="396ca82f7e359b430a6cb0a6162d7bc937367705" 15SRCREV="396ca82f7e359b430a6cb0a6162d7bc937367705"
@@ -20,6 +21,12 @@ inherit setuptools update-rc.d identity default_configs
20 21
21GLANCE_DEFAULT_STORE ?= "file" 22GLANCE_DEFAULT_STORE ?= "file"
22 23
24do_install_prepend() {
25 sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/functional/__init__.py
26 sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/unit/base.py
27 sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/utils.py
28}
29
23do_install_append() { 30do_install_append() {
24 TEMPLATE_CONF_DIR=${S}${sysconfdir} 31 TEMPLATE_CONF_DIR=${S}${sysconfdir}
25 GLANCE_CONF_DIR=${D}${sysconfdir}/glance 32 GLANCE_CONF_DIR=${D}${sysconfdir}/glance
@@ -142,6 +149,7 @@ RDEPENDS_${SRCNAME} = "${PN} \
142RDEPENDS_${SRCNAME}-api = "${SRCNAME}" 149RDEPENDS_${SRCNAME}-api = "${SRCNAME}"
143RDEPENDS_${SRCNAME}-registry = "${SRCNAME}" 150RDEPENDS_${SRCNAME}-registry = "${SRCNAME}"
144RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}" 151RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}"
152RDEPENDS_${SRCNAME}-tests = "python-psutil qpid-python"
145 153
146INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-registry" 154INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-registry"
147INITSCRIPT_NAME_${SRCNAME}-api = "glance-api" 155INITSCRIPT_NAME_${SRCNAME}-api = "glance-api"