From 2d5085be3f50d7c7256a75ce92a74f54eaa7af9a Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Wed, 14 May 2014 16:12:41 -0400 Subject: heat tests change project_dir path By default, heat-tests sets project dir to /usr//python2.7/site-packages/ which is the starting place for heat-tests to search for default environment setting file. However all the required file are in /etc/heat. So set project_dir to "/" Signed-off-by: Vu Tran --- .../heat-tests-change-project_dir-path.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-heat/heat-tests-change-project_dir-path.patch (limited to 'meta-openstack/recipes-devtools/python/python-heat') diff --git a/meta-openstack/recipes-devtools/python/python-heat/heat-tests-change-project_dir-path.patch b/meta-openstack/recipes-devtools/python/python-heat/heat-tests-change-project_dir-path.patch new file mode 100644 index 0000000..c3927d4 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-heat/heat-tests-change-project_dir-path.patch @@ -0,0 +1,23 @@ +heat tests change project_dir path + +By default, heat-tests sets project dir to +/usr//python2.7/site-packages/. However +all heat config files are within /etc/heat. So +set project_dir to "/" + +Signed-off-by: Vu Tran + +diff --git a/heat/tests/common.py b/heat/tests/common.py +index ea5df9a..2bdc231 100644 +--- a/heat/tests/common.py ++++ b/heat/tests/common.py +@@ -42,7 +42,8 @@ class HeatTestCase(testtools.TestCase): + self.addCleanup(enable_sleep) + + mod_dir = os.path.dirname(sys.modules[__name__].__file__) +- project_dir = os.path.abspath(os.path.join(mod_dir, '../../')) ++ #project_dir = os.path.abspath(os.path.join(mod_dir, '../../')) ++ project_dir = "/" + env_dir = os.path.join(project_dir, 'etc', 'heat', + 'environment.d') + -- cgit v1.2.3-54-g00ecf