update run_ci.sh 31/35131/2
authorzhihui wu <wu.zhihui1@zte.com.cn>
Mon, 22 May 2017 07:43:29 +0000 (15:43 +0800)
committerzhihui wu <wu.zhihui1@zte.com.cn>
Tue, 23 May 2017 01:33:21 +0000 (09:33 +0800)
- change "qtip workspace create" to "qtip create"
- set pod_name and scenario from env if not provided by user
as options

Change-Id: I0a7e1923c6e45a263147dd2f87a6a75c3751c65c
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
tests/ci/run_ci.sh

index 8fd53b3..163adb3 100644 (file)
@@ -45,6 +45,8 @@ done
 #set vars from env if not provided by user as options
 installer_type=${installer_type:-$INSTALLER_TYPE}
 installer_ip=${installer_ip:-$INSTALLER_IP}
+pod_name=${pod_name:-$POD_NAME}
+scenario=${scenario:-$SCENARIO}
 
 sshoptions="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
 
@@ -65,7 +67,7 @@ esac
 
 cd /home/opnfv
 
-qtip workspace create --pod ${pod_name} --installer ${installer_type} \
+qtip create --pod ${pod_name} --installer ${installer_type} \
 --master-host ${installer_ip} --scenario ${scenario} workspace
 
 cd /home/opnfv/workspace/