From cb6a12ad7c10b7cf2922facd3464200272a34996 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Wed, 18 Jun 2014 15:45:37 -0400 Subject: cinder builtin tests config location Many cinder built-in testcases failed because they can not find cinder configuration file, as these testcases assume that they are run at python site-packages dir. So forcing these failure testcases to look for these configuration file using absolute path. Signed-off-by: Vu Tran --- meta-openstack/recipes-devtools/python/python-cinder_git.bb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meta-openstack/recipes-devtools/python/python-cinder_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb index b723257..7b3bb28 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb @@ -17,6 +17,7 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \ file://lvm_iscsi_setup.sh \ file://add-cinder-volume-types.sh \ file://fix_cinder_memory_leak.patch \ + file://cinder-builtin-tests-config-location.patch \ " SRCREV="81259f36f57e91b31009fbd209ea2a07a2ceb213" @@ -27,6 +28,11 @@ inherit setuptools update-rc.d identity default_configs CINDER_BACKUP_BACKEND_DRIVER ?= "cinder.backup.drivers.swift" +do_install_prepend() { + sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/conf_fixture.py + sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/fake_flags.py +} + do_install_append() { TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} CINDER_CONF_DIR=${D}${sysconfdir}/${SRCNAME} -- cgit v1.2.3-54-g00ecf