From c77a07631e26862073e5c1bbfece1f94da0d3208 Mon Sep 17 00:00:00 2001 From: Keith Holman Date: Tue, 3 Jun 2014 17:06:46 -0400 Subject: keystone: create test temporary directory Some Keystone tests create temporary files, usually databases for testing. These files are stored in the "tmp" directory under the "tests" directory in Keystone. The fix creates this directory so these tests don't fail on failing to create temporary files because the path doesn't exist. Signed-off-by: Keith Holman --- meta-openstack/recipes-devtools/python/python-keystone_git.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta-openstack/recipes-devtools/python/python-keystone_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-keystone_git.bb b/meta-openstack/recipes-devtools/python/python-keystone_git.bb index 4c28f78..e37e658 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone_git.bb +++ b/meta-openstack/recipes-devtools/python/python-keystone_git.bb @@ -59,6 +59,8 @@ do_install_append() { install -m 0755 ${WORKDIR}/keystone ${D}${sysconfdir}/init.d/keystone fi + install -d ${KEYSTONE_PACKAGE_DIR}/tests/tmp + sed -e "s:%KEYSTONE_PACKAGE_DIR%:${PYTHON_SITEPACKAGES_DIR}/keystone:g" -i ${KEYSTONE_PACKAGE_DIR}/tests/test_overrides.conf cp run_tests.sh ${KEYSTONE_CONF_DIR} -- cgit v1.2.3-54-g00ecf