From b06874fd38f3c2e77fb6f1950f4f70a3dbeca418 Mon Sep 17 00:00:00 2001 From: Keith Holman Date: Fri, 30 May 2014 12:55:48 -0400 Subject: horizon: add full path to test directories The tests included Horizon expect all files to be in a single location in order to be run directly from the source tree. The recipe for installing Horizon on the system installs Horizon as a python site-package and puts files in different locations depending on the file type. In order to have the tests support this type of install we need to explicitly indicate the full path of the test files to exclude in order to have the tests run successfully. This fix adds the absolute path to the test locations allows the Horizon tests to pass as expected. Signed-off-by: Keith Holman --- meta-openstack/recipes-devtools/python/python-horizon_git.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta-openstack/recipes-devtools/python/python-horizon_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-horizon_git.bb b/meta-openstack/recipes-devtools/python/python-horizon_git.bb index 3924fc8..3f9e5e6 100644 --- a/meta-openstack/recipes-devtools/python/python-horizon_git.bb +++ b/meta-openstack/recipes-devtools/python/python-horizon_git.bb @@ -38,7 +38,7 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/icehouse \ file://fix_bindir_path.patch \ file://openstack-dashboard-apache.conf \ file://local_settings.py \ - file://horizon-fix-test-script-to-not-require-coverage-tool.patch \ + file://horizon-use-full-package-path-to-test-directories.patch \ " SRCREV="0c3b71055c0d169b8245aee773438dbcb46c2bcf" @@ -69,6 +69,7 @@ do_install_append() { sed 's:@PYTHON_SITEPACKAGES@:${PYTHON_SITEPACKAGES_DIR}:' ${WORKDIR}/horizon.init >${WORKDIR}/horizon install -m 0755 ${WORKDIR}/horizon ${D}${sysconfdir}/init.d/horizon fi + sed -i -e 's#%PYTHON_SITEPACKAGES%#${PYTHON_SITEPACKAGES_DIR}#g' ${D}${PYTHON_SITEPACKAGES_DIR}/horizon/test/settings.py # no longer required. kept as reference. # mv ${D}${datadir}/bin ${DASHBOARD_DIR}/bin -- cgit v1.2.3-54-g00ecf