From aa9f2f5f792392757d62d6833425b232c8dc5d9b Mon Sep 17 00:00:00 2001 From: Keith Holman Date: Fri, 13 Jun 2014 10:43:04 -0400 Subject: novaclient: fix path to test certificate Novaclient contains a test that fails because it can't find the path to the test certficate. This is because the test is based off of running the test from the base of the source tree. This fix changes the path to look for the certificate from a relative path to the absolute path allowing the test to be ran from any directory. Signed-off-by: Keith Holman Signed-off-by: Bruce Ashfield --- meta-openstack/recipes-devtools/python/python-novaclient_git.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta-openstack/recipes-devtools/python/python-novaclient_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-novaclient_git.bb b/meta-openstack/recipes-devtools/python/python-novaclient_git.bb index 9d114d2..3bb3aac 100644 --- a/meta-openstack/recipes-devtools/python/python-novaclient_git.bb +++ b/meta-openstack/recipes-devtools/python/python-novaclient_git.bb @@ -9,6 +9,7 @@ PR = "r0" SRC_URI = "\ git://github.com/openstack/python-novaclient.git;branch=master \ file://fix_novaclient_memory_leak.patch \ + file://novaclient-specify-full-path-to-test-certificate.patch \ " PV="2.16.0+git${SRCPV}" @@ -36,6 +37,9 @@ PACKAGECONFIG[bash-completion] = ",,bash-completion,bash-completion ${BPN}-bash- do_install_append() { install -d ${D}/${sysconfdir}/bash_completion.d install -m 664 ${S}/tools/nova.bash_completion ${D}/${sysconfdir}/bash_completion.d + + sed -e "s:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g" \ + -i ${D}/${PYTHON_SITEPACKAGES_DIR}/novaclient/tests/v1_1/test_servers.py } PACKAGES =+ "${BPN}-bash-completion" -- cgit v1.2.3-54-g00ecf