Add a default value to protect add_images.sh 95/36995/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 5 Jul 2017 18:39:35 +0000 (20:39 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Thu, 6 Jul 2017 05:47:19 +0000 (07:47 +0200)
It sets a default value to the optional env var: FUNCTEST_IMAGES_DIR

Change-Id: Ib78af2aaee27470ad10b0979a68c09963091cbb6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
docker/add_images.sh

index 1e5382c..93afbd2 100644 (file)
@@ -4,6 +4,8 @@
 # and places them in the functest docker image
 set -e
 
+FUNCTEST_IMAGES_DIR=${FUNCTEST_IMAGES_DIR:-/home/opnfv/functest/images}
+
 CIRROS_REPO_URL=https://download.cirros-cloud.net
 CIRROS_AARCH64_TAG=161201
 CIRROS_X86_64_TAG=0.3.5