X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=scripts%2Fsdc%2Fsetup_sdc_for_sanity.sh;h=1a3239751183b308400b43a8a4f9c977f943fdc5;hb=1d3ceea1defb5640e9f850dad647904b41002988;hp=c5a923d8689b1d7eee88e21e61e01333d164fa6c;hpb=d8c426d3c3a2f1d0b06cad4c542b78da6976cfec;p=integration%2Fcsit.git diff --git a/scripts/sdc/setup_sdc_for_sanity.sh b/scripts/sdc/setup_sdc_for_sanity.sh index c5a923d8..1a323975 100644 --- a/scripts/sdc/setup_sdc_for_sanity.sh +++ b/scripts/sdc/setup_sdc_for_sanity.sh @@ -48,7 +48,7 @@ function using_https { set -exo pipefail echo "This is ${WORKSPACE}/scripts/sdc/setup_sdc_for_sanity.sh" - +echo "lets check what is ${1} ${2}" ENABLE_SIMULATOR= case "$1" in tad|tud) @@ -58,16 +58,17 @@ case "$1" in '') # we will just setup sdc - no tests export TEST_SUITE="" - - # this is mandatory ENABLE_SIMULATOR="--simulator" + # this is mandatory ;; *) - usage - exit 1 + export TEST_SUITE="" + ENABLE_SIMULATOR="--simulator" + # # usage + # exit 1 ;; esac - +echo "Lets check is simulator is enabled or not ${ENABLE_SIMULATOR}" # Clone sdc enviroment template mkdir -p "${WORKSPACE}/data/environments/" mkdir -p "${WORKSPACE}/data/clone/" @@ -78,6 +79,7 @@ if using_local_images && [ -n "$SDC_LOCAL_GITREPO" ] ; then if [ -d "$SDC_LOCAL_GITREPO" ] ; then rm -rf ./sdc cp -a "$SDC_LOCAL_GITREPO" ./sdc + # echo "[skipping copying git repo of sdc]" else echo "[ERROR]: Local git repo for sdc does not exist: ${SDC_LOCAL_GITREPO}" exit 1 @@ -94,7 +96,7 @@ chmod -R 777 "${WORKSPACE}/data/clone" export ENV_NAME='CSIT' export MR_IP_ADDR='10.0.0.1' -ifconfig +ip a IP_ADDRESS=`ip route get 8.8.8.8 | awk '/src/{ print $7 }'` export HOST_IP="$IP_ADDRESS"