aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2017-02-02 15:56:48 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-02 15:56:48 +0000
commit65865e43dc9754ae8bbb54dda37514ab8164d2d2 (patch)
tree472ab867ddc284c39d6c440ca95a919088fd2b18 /functest/opnfv_tests/openstack
parent3b33e98b4f6450ee298929fa3d7560587ff140d0 (diff)
parentcc9da399c62d667ebf06bc6fc65b496003b465b6 (diff)
Merge "Bugfix: multisite test case fails"
Diffstat (limited to 'functest/opnfv_tests/openstack')
-rw-r--r--functest/opnfv_tests/openstack/tempest/conf_utils.py3
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'))