diff options
author | Juha Kosonen <juha.kosonen@nokia.com> | 2017-02-02 17:27:34 +0200 |
---|---|---|
committer | Juha Kosonen <juha.kosonen@nokia.com> | 2017-02-02 17:27:34 +0200 |
commit | cc9da399c62d667ebf06bc6fc65b496003b465b6 (patch) | |
tree | 1aadb6a61711b77ecf7c6282c8b7c132a2cf55de /functest/opnfv_tests/openstack | |
parent | a5da9f15d7fd4b85fb5a2ca5d376e2a47760df05 (diff) |
Bugfix: multisite test case fails
Ensure the target directory for tempest config file exists.
JIRA: FUNCTEST-715
Change-Id: I7bfaab1faa3e664d84813cdbf9a830b0b56a1f60
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
Diffstat (limited to 'functest/opnfv_tests/openstack')
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/conf_utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py index 4c5e8663..0c9064a1 100644 --- a/functest/opnfv_tests/openstack/tempest/conf_utils.py +++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py @@ -172,6 +172,9 @@ def configure_tempest(deployment_dir, IMAGE_ID=None, FLAVOR_ID=None): config.write(config_file) # Copy tempest.conf to /home/opnfv/functest/results/tempest/ + if not os.path.exists(TEMPEST_RESULTS_DIR): + os.makedirs(TEMPEST_RESULTS_DIR) + shutil.copyfile(tempest_conf_file, os.path.join(TEMPEST_RESULTS_DIR, 'tempest.conf')) |