diff options
author | zhihui wu <wu.zhihui1@zte.com.cn> | 2018-02-27 16:03:07 +0800 |
---|---|---|
committer | zhihui wu <wu.zhihui1@zte.com.cn> | 2018-02-27 17:09:56 +0800 |
commit | c29e36280713aa232a19e0d3612bae0948601837 (patch) | |
tree | bd02444dec1f1a8476230c9273087c5dc81b7bd0 /qtip/scripts | |
parent | b4f529f1ae6d95c1bfb9a2357ceb36fa3f7eb987 (diff) |
Delete the hardcoding parameter "sut_type"
SUT already can be passed from CLI.
Change-Id: I3ff68ebf94ce25dfc0a42964cf1aafc8e58da4b6
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'qtip/scripts')
-rw-r--r-- | qtip/scripts/quickstart.sh | 8 |
1 files changed, 5 insertions, 3 deletions
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` |