Make use of existing cirros image in the Functest container 95/37395/3
authorjose.lausuch <jose.lausuch@ericsson.com>
Thu, 13 Jul 2017 13:57:59 +0000 (15:57 +0200)
committerjose.lausuch <jose.lausuch@ericsson.com>
Thu, 13 Jul 2017 16:37:20 +0000 (18:37 +0200)
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 <jose.lausuch@ericsson.com>
tests/functest_run.sh

index 95cf629..fb647c5 100755 (executable)
@@ -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