Create results/tempest dir for refstack config
[functest.git] / functest / opnfv_tests / openstack / tempest / conf_utils.py
index 52fa600..6c3e820 100644 (file)
@@ -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'))