summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-nova
diff options
context:
space:
mode:
authorKeith Holman <Keith.Holman@windriver.com>2014-06-18 10:01:35 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-06-23 12:23:13 -0400
commitb2cdd91ad6cf8432f54c8415e1e2930286230fe1 (patch)
tree14ab231fbee8b64b080f4e3b8683891b1a9d48ff /meta-openstack/recipes-devtools/python/python-nova
parentcbc0192694da6436cfe14b57b46bcea566c97396 (diff)
downloadmeta-cloud-services-b2cdd91ad6cf8432f54c8415e1e2930286230fe1.tar.gz
nova: package doc directory and fix its path
The tests included with nova require some setup and configuration files that are within the "doc" directory. This fix includes the doc directory on the target system as part of the recipe. This fix also includes a patch that updates the tests to find the "doc" directory where it is installed on the target system. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-nova')
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova/nova-fix-location-to-doc-directory.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova/nova-fix-location-to-doc-directory.patch b/meta-openstack/recipes-devtools/python/python-nova/nova-fix-location-to-doc-directory.patch
new file mode 100644
index 0000000..7893f87
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-nova/nova-fix-location-to-doc-directory.patch
@@ -0,0 +1,46 @@
1From 4d74c926b8dd7eaac0c9ddac0d1161f634b69e1d Mon Sep 17 00:00:00 2001
2From: Keith Holman <Keith.Holman@windriver.com>
3Date: Tue, 17 Jun 2014 16:40:51 -0400
4Subject: [PATCH] nova: fix location to doc directory
5
6Currently, the tests included with nova expect the doc directory to be
7in the location they exist in the source tree. However, during system
8deployment the documentation is installed under the "nova" directory 1
9level higher in the directory tree. This patch fixes the relative
10path to be able to find the files.
11
12Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
13---
14 nova/tests/integrated/api_samples_test_base.py | 2 +-
15 nova/tests/integrated/v3/api_sample_base.py | 2 +-
16 2 files changed, 2 insertions(+), 2 deletions(-)
17
18diff --git a/nova/tests/integrated/api_samples_test_base.py b/nova/tests/integrated/api_samples_test_base.py
19index 6acb5a1..31caa6c 100644
20--- a/nova/tests/integrated/api_samples_test_base.py
21+++ b/nova/tests/integrated/api_samples_test_base.py
22@@ -88,7 +88,7 @@ class ApiSampleTestBase(integrated_helpers._IntegratedTestBase):
23 @classmethod
24 def _get_sample(cls, name):
25 dirname = os.path.dirname(os.path.abspath(__file__))
26- dirname = os.path.normpath(os.path.join(dirname, "../../../doc"))
27+ dirname = os.path.normpath(os.path.join(dirname, "../../doc"))
28 return cls._get_sample_path(name, dirname)
29
30 @classmethod
31diff --git a/nova/tests/integrated/v3/api_sample_base.py b/nova/tests/integrated/v3/api_sample_base.py
32index aa1ca8f..d22a2c8 100644
33--- a/nova/tests/integrated/v3/api_sample_base.py
34+++ b/nova/tests/integrated/v3/api_sample_base.py
35@@ -71,7 +71,7 @@ class ApiSampleTestBaseV3(api_samples_test_base.ApiSampleTestBase):
36 @classmethod
37 def _get_sample(cls, name):
38 dirname = os.path.dirname(os.path.abspath(__file__))
39- dirname = os.path.normpath(os.path.join(dirname, "../../../../doc/v3"))
40+ dirname = os.path.normpath(os.path.join(dirname, "../../../doc/v3"))
41 return cls._get_sample_path(name, dirname)
42
43 @classmethod
44--
451.9.3
46