summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python
diff options
context:
space:
mode:
authorVu Tran <vu.tran@windriver.com>2014-05-14 16:12:41 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-05-23 14:43:04 -0400
commit09f0427603937e9c88c58bb363c0b96c53fc5e02 (patch)
treeda4048c3d41880d5d3db690b3908cda6739184c7 /meta-openstack/recipes-devtools/python
parent66e9c7216387db234f695a5a378f64370b23203b (diff)
downloadmeta-cloud-services-09f0427603937e9c88c58bb363c0b96c53fc5e02.tar.gz
heat tests change project_dir path
By default, heat-tests sets project dir to /usr/<lib/lib64>/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 <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python')
-rw-r--r--meta-openstack/recipes-devtools/python/python-heat/heat-tests-change-project_dir-path.patch23
-rw-r--r--meta-openstack/recipes-devtools/python/python-heat_git.bb1
2 files changed, 24 insertions, 0 deletions
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 @@
1heat tests change project_dir path
2
3By default, heat-tests sets project dir to
4/usr/<lib/lib64>/python2.7/site-packages/. However
5all heat config files are within /etc/heat. So
6set project_dir to "/"
7
8Signed-off-by: Vu Tran <vu.tran@windriver.com>
9
10diff --git a/heat/tests/common.py b/heat/tests/common.py
11index ea5df9a..2bdc231 100644
12--- a/heat/tests/common.py
13+++ b/heat/tests/common.py
14@@ -42,7 +42,8 @@ class HeatTestCase(testtools.TestCase):
15 self.addCleanup(enable_sleep)
16
17 mod_dir = os.path.dirname(sys.modules[__name__].__file__)
18- project_dir = os.path.abspath(os.path.join(mod_dir, '../../'))
19+ #project_dir = os.path.abspath(os.path.join(mod_dir, '../../'))
20+ project_dir = "/"
21 env_dir = os.path.join(project_dir, 'etc', 'heat',
22 'environment.d')
23
diff --git a/meta-openstack/recipes-devtools/python/python-heat_git.bb b/meta-openstack/recipes-devtools/python/python-heat_git.bb
index 94ea031..8b7db6a 100644
--- a/meta-openstack/recipes-devtools/python/python-heat_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-heat_git.bb
@@ -13,6 +13,7 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
13 file://autoscaling_example.template \ 13 file://autoscaling_example.template \
14 file://one_vm_example.template \ 14 file://one_vm_example.template \
15 file://two_vms_example.template \ 15 file://two_vms_example.template \
16 file://heat-tests-change-project_dir-path.patch \
16" 17"
17 18
18SRCREV="58de9e6415f5bdabde708c8584b21b59b7e96a88" 19SRCREV="58de9e6415f5bdabde708c8584b21b59b7e96a88"