summaryrefslogtreecommitdiffstats
path: root/tests/ci
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2017-07-07 15:57:12 +0800
committerzhihui wu <wu.zhihui1@zte.com.cn>2017-07-07 15:57:12 +0800
commit293a34e7f66176d9e080bbef41be5f5aefe37cd7 (patch)
tree886d8dcdd950af1d391d477830c9ef7b2cbfba4e /tests/ci
parent5ad321a08cf289ca67a4a06580bb9803ca8e62e5 (diff)
Add an testapi_url option in the ci script
Change-Id: I9eca0054eb00e1279df9853cb7624bd4586c2195 Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'tests/ci')
-rw-r--r--tests/ci/run_ci.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/ci/run_ci.sh b/tests/ci/run_ci.sh
index 03d9d846..5c62644b 100644
--- a/tests/ci/run_ci.sh
+++ b/tests/ci/run_ci.sh
@@ -9,7 +9,7 @@
set -e
usage(){
- echo "usage: $0 -t <installer_type> -i <installer_ip> -p <pod_name> -s <scenario>" >&2
+ echo "usage: $0 -t <installer_type> -i <installer_ip> -p <pod_name> -s <scenario> -r <report_url>" >&2
}
verify_connectivity(){
@@ -26,12 +26,13 @@ verify_connectivity(){
}
#Getoptions
-while getopts ":t:i:p:s:he" optchar; do
+while getopts ":t:i:p:s:r:he" optchar; do
case "${optchar}" in
t) installer_type=${OPTARG} ;;
i) installer_ip=${OPTARG} ;;
p) pod_name=${OPTARG} ;;
s) scenario=${OPTARG} ;;
+ r) testapi_url=${OPTARG} ;;
h) usage
exit 0
;;
@@ -47,6 +48,7 @@ installer_type=${installer_type:-$INSTALLER_TYPE}
installer_ip=${installer_ip:-$INSTALLER_IP}
pod_name=${pod_name:-$POD_NAME}
scenario=${scenario:-$SCENARIO}
+testapi_url=${testapi_url:-$TESTAPI_URL}
sshoptions="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
@@ -74,7 +76,7 @@ cd /home/opnfv/workspace/
qtip setup
eval `ssh-agent`
-qtip run
+qtip run --extra-vars "testapi_url=$testapi_url"
qtip teardown
# Remove ssh public key from installer