From 2854e3b0dcf7f0ac2e115c82ed9686a62f2ee4a0 Mon Sep 17 00:00:00 2001 From: Keith Holman Date: Fri, 20 Jun 2014 13:06:01 -0400 Subject: keystoneclient: add example test certificates The tests included with keystoneclient require the use of example certificates. This fix copies the example certificates that are found in the source to the target system. It also patches the test files to find the certificates in the correct location. Signed-off-by: Keith Holman --- .../recipes-devtools/python/python-keystoneclient_git.bb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb b/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb index de75a63..a326cd7 100644 --- a/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb +++ b/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb @@ -5,10 +5,12 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=4a4d0e932ffae1c0131528d30d419c55" PR = "r0" +SRCNAME = "keystoneclient" SRC_URI = "\ git://github.com/openstack/python-keystoneclient.git;branch=master \ file://fix_keystoneclient_memory_leak.patch \ + file://keystoneclient-fix-test-path-to-example-certificates.patch \ " PV="0.6.0+git${SRCPV}" @@ -38,7 +40,13 @@ PACKAGECONFIG[bash-completion] = ",,bash-completion,bash-completion ${BPN}-bash- do_install_append() { install -d ${D}/${sysconfdir}/bash_completion.d install -m 664 ${S}/tools/keystone.bash_completion ${D}/${sysconfdir}/bash_completion.d + + cp -r ${S}/examples ${D}${PYTHON_SITEPACKAGES_DIR}/${SRCNAME} } -PACKAGES =+ "${BPN}-bash-completion" +PACKAGES =+ " ${SRCNAME}-tests ${BPN}-bash-completion" FILES_${BPN}-bash-completion = "${sysconfdir}/bash_completion.d/*" + +FILES_${SRCNAME}-tests = "${D}${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/examples \ + " + -- cgit v1.2.3-54-g00ecf