aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/tempest
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-09-05 09:10:40 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-05 09:10:40 +0000
commit6df95384eb26cdca150f7010bcead9e93d8aac4a (patch)
treee02bb7865765d039e695eaea52d69b62a81739fa /functest/opnfv_tests/openstack/tempest
parent82b5b5c13ed5b08ff7191d0d1dcddfc4bd99f0c7 (diff)
parent48ab10bb0a1ae754309e0810b3d85acdf70c8225 (diff)
Merge "Create results/tempest dir for refstack config"
Diffstat (limited to 'functest/opnfv_tests/openstack/tempest')
-rw-r--r--functest/opnfv_tests/openstack/tempest/conf_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py
index 88d96ebd6..72ea5ce72 100644
--- a/functest/opnfv_tests/openstack/tempest/conf_utils.py
+++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py
@@ -130,6 +130,8 @@ def backup_tempest_config(conf_file):
"""
Copy config file to tempest results directory
"""
+ if not os.path.exists(TEMPEST_RESULTS_DIR):
+ os.makedirs(TEMPEST_RESULTS_DIR)
shutil.copyfile(conf_file,
os.path.join(TEMPEST_RESULTS_DIR, 'tempest.conf'))