aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci/prepare_env.py
diff options
context:
space:
mode:
authorHelen Yao <yaohelan@huawei.com>2017-05-19 01:59:13 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-19 01:59:13 +0000
commit2d0027b13ed1a5a6f35666b2b74be0fc8b4f7b5f (patch)
treee723c53b24a3c75a151645536dc8cdc7d572282c /functest/ci/prepare_env.py
parentdd9fb78e0553c35eb60e76b2979dac803f818ecb (diff)
parent0d9265dcd4ff154a500bc5a62f3f23559e3deba8 (diff)
Merge "Add a new directory to hold pre-downloaded images"
Diffstat (limited to 'functest/ci/prepare_env.py')
-rwxr-xr-xfunctest/ci/prepare_env.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/functest/ci/prepare_env.py b/functest/ci/prepare_env.py
index 9fd07958..8e17a4fc 100755
--- a/functest/ci/prepare_env.py
+++ b/functest/ci/prepare_env.py
@@ -156,8 +156,8 @@ def create_directories():
logger.info(" %s created." %
CONST.__getattribute__('dir_functest_conf'))
else:
- logger.debug(" %s already exists."
- % CONST.__getattribute__('dir_functest_conf'))
+ logger.debug(" %s already exists." %
+ CONST.__getattribute__('dir_functest_conf'))
if not os.path.exists(CONST.__getattribute__('dir_functest_data')):
os.makedirs(CONST.__getattribute__('dir_functest_data'))
@@ -166,6 +166,13 @@ def create_directories():
else:
logger.debug(" %s already exists." %
CONST.__getattribute__('dir_functest_data'))
+ if not os.path.exists(CONST.__getattribute__('dir_functest_images')):
+ os.makedirs(CONST.__getattribute__('dir_functest_images'))
+ logger.info(" %s created." %
+ CONST.__getattribute__('dir_functest_images'))
+ else:
+ logger.debug(" %s already exists." %
+ CONST.__getattribute__('dir_functest_images'))
def source_rc_file():