aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder/cinder-builtin-tests-config-location.patch
blob: 53da893f033d4ef92f4dce6e570d3d98ae84d887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cinder builtin tests config location

Many cinder built-in testcases failed because they
can not find cinder configuration file, as these
testcases assume that they are run at python
site-packages dir.  So forcing these failure
testcases to look for these confiugration file
using absolute path.

Signed-off-by: Vu Tran <vu.tran@windriver.com>

Index: git/cinder/tests/conf_fixture.py
===================================================================
--- git.orig/cinder/tests/conf_fixture.py
+++ git/cinder/tests/conf_fixture.py
@@ -43,7 +43,7 @@ def set_defaults(conf):
     conf.set_default('iscsi_num_targets', 8)
     conf.set_default('connection', 'sqlite://', group='database')
     conf.set_default('sqlite_synchronous', False)
-    conf.set_default('policy_file', 'cinder/tests/policy.json')
+    conf.set_default('policy_file', '%PYTHON_SITEPACKAGES_DIR%/cinder/tests/policy.json')
     conf.set_default(
         'xiv_ds8k_proxy',
         'cinder.tests.test_ibm_xiv_ds8k.XIVDS8KFakeProxyDriver')