From c29e36280713aa232a19e0d3612bae0948601837 Mon Sep 17 00:00:00 2001 From: zhihui wu Date: Tue, 27 Feb 2018 16:03:07 +0800 Subject: Delete the hardcoding parameter "sut_type" SUT already can be passed from CLI. Change-Id: I3ff68ebf94ce25dfc0a42964cf1aafc8e58da4b6 Signed-off-by: zhihui wu --- qtip/scripts/quickstart.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'qtip') diff --git a/qtip/scripts/quickstart.sh b/qtip/scripts/quickstart.sh index b430aa3f..f9becda8 100644 --- a/qtip/scripts/quickstart.sh +++ b/qtip/scripts/quickstart.sh @@ -30,7 +30,7 @@ verify_connectivity(){ } #Getoptions -while getopts ":t:i:p:s:r:he" optchar; do +while getopts ":t:i:p:s:r:u:he" optchar; do case "${optchar}" in q) test_suite=${OPTARG} ;; t) installer_type=${OPTARG} ;; @@ -38,6 +38,7 @@ while getopts ":t:i:p:s:r:he" optchar; do p) pod_name=${OPTARG} ;; s) scenario=${OPTARG} ;; r) testapi_url=${OPTARG} ;; + u) sut=${OPTARG} ;; h) usage exit 0 ;; @@ -55,6 +56,7 @@ test_suite=${test_suite:-$TEST_SUITE} pod_name=${pod_name:-$NODE_NAME} scenario=${scenario:-$SCENARIO} testapi_url=${testapi_url:-$TESTAPI_URL} +sut=${sut:-host} # we currently support fuel, apex and mcp if [[ ! "$installer_type" =~ (fuel|apex|mcp) ]]; then @@ -76,9 +78,9 @@ esac cd /home/opnfv qtip create --project-template ${test_suite} --pod-name ${pod_name} --installer-type ${installer_type} \ ---installer-host ${installer_ip} --scenario ${scenario} ${test_suite} +--installer-host ${installer_ip} --scenario ${scenario} --sut ${sut} ${test_suite}-${sut} -cd ${test_suite} +cd ${test_suite}-${sut} qtip setup eval `ssh-agent` -- cgit 1.2.3-korg