From: jose.lausuch Date: Thu, 13 Jul 2017 13:57:59 +0000 (+0200) Subject: Make use of existing cirros image in the Functest container X-Git-Tag: 0.5.0~20 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=30c5870f7cf3157f997b159cf25bb9cbf1117060;p=parser.git Make use of existing cirros image in the Functest container Once [1] is merged, the image needed for this test case will be available in /home/opnfv/functest/images/ So, no need to download again. [1] https://gerrit.opnfv.org/gerrit/#/c/37393/ Change-Id: I219fc38cdf5e929ecdba1631d6315f6d076ae5d0 Signed-off-by: jose.lausuch --- diff --git a/tests/functest_run.sh b/tests/functest_run.sh index 95cf629..fb647c5 100755 --- a/tests/functest_run.sh +++ b/tests/functest_run.sh @@ -17,8 +17,12 @@ PARSER_CI_DEBUG=${CI_DEBUG:-false} debug="" } -# PARSER_IMAGE_URL_FILE=cirros-0.3.0-x86_64-disk.img -PARSER_IMAGE_URL_FILE=cirros-0.3.2-x86_64-disk.img +if [ -n $1 ]; then + PARSER_IMAGE_URL_FILE=$1 +else + # PARSER_IMAGE_URL_FILE=cirros-0.3.0-x86_64-disk.img + PARSER_IMAGE_URL_FILE=cirros-0.3.2-x86_64-disk.img +fi # PARSER_IMAGE_URL=https://launchpad.net/cirros/trunk/0.3.0/+download/${PARSER_IMAGE_URL_FILE} PARSER_IMAGE_URL=http://download.cirros-cloud.net/0.3.2/${PARSER_IMAGE_URL_FILE} # PARSER_IMAGE_NAME=rhel-6.5-test-image