diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/cinder-builtin-tests-config-location.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder-builtin-tests-config-location.patch b/meta-openstack/recipes-devtools/python/python-cinder/cinder-builtin-tests-config-location.patch new file mode 100644 index 0000000..53da893 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder-builtin-tests-config-location.patch | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | cinder builtin tests config location | ||
| 2 | |||
| 3 | Many cinder built-in testcases failed because they | ||
| 4 | can not find cinder configuration file, as these | ||
| 5 | testcases assume that they are run at python | ||
| 6 | site-packages dir. So forcing these failure | ||
| 7 | testcases to look for these confiugration file | ||
| 8 | using absolute path. | ||
| 9 | |||
| 10 | Signed-off-by: Vu Tran <vu.tran@windriver.com> | ||
| 11 | |||
| 12 | Index: git/cinder/tests/conf_fixture.py | ||
| 13 | =================================================================== | ||
| 14 | --- git.orig/cinder/tests/conf_fixture.py | ||
| 15 | +++ git/cinder/tests/conf_fixture.py | ||
| 16 | @@ -43,7 +43,7 @@ def set_defaults(conf): | ||
| 17 | conf.set_default('iscsi_num_targets', 8) | ||
| 18 | conf.set_default('connection', 'sqlite://', group='database') | ||
| 19 | conf.set_default('sqlite_synchronous', False) | ||
| 20 | - conf.set_default('policy_file', 'cinder/tests/policy.json') | ||
| 21 | + conf.set_default('policy_file', '%PYTHON_SITEPACKAGES_DIR%/cinder/tests/policy.json') | ||
| 22 | conf.set_default( | ||
| 23 | 'xiv_ds8k_proxy', | ||
| 24 | 'cinder.tests.test_ibm_xiv_ds8k.XIVDS8KFakeProxyDriver') | ||
