summaryrefslogtreecommitdiffstats
path: root/ci/envs/utils.sh
diff options
context:
space:
mode:
authorkalyanreddy <reddyx.gundarapu@intel.com>2016-09-16 16:26:43 +0530
committerKalyanreddy <reddyx.gundarapu@intel.com>2016-09-21 15:45:41 +0530
commit40a5f2a48ab343bf24a69af2b1b8bcd09798be3c (patch)
tree6640f06ed7580a147584263dcd0c5f808b207805 /ci/envs/utils.sh
parentb8f6485d5a5c66f0fce566e59b8b5891c6a7f571 (diff)
This patch includes scripts to verify the sha512sum of the
guest image. Also contains scripts to exit the test if the test_type is not verify/daily/merge. Change-Id: Ibbb0d30302095282b539db7293084de007db6ddc Co-Authored-By: Shravani <shravani.p@tcs.com> Signed-off-by: kalyanreddy <reddyx.gundarapu@intel.com>
Diffstat (limited to 'ci/envs/utils.sh')
-rwxr-xr-xci/envs/utils.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/ci/envs/utils.sh b/ci/envs/utils.sh
index f582b5aac..5db55bef8 100755
--- a/ci/envs/utils.sh
+++ b/ci/envs/utils.sh
@@ -18,6 +18,12 @@ function getKernelVersion {
#Get the IP address from pod.yaml file (example ip : 10.2.117.23)
function getHostIP {
- HOST_IP=`grep 'ip' $WORKSPACE/tests/pod.yaml | awk -F ': ' '{print $NF}' | tail -1`
+ host_dir="/root/workspace/scripts/"
+ container_dir="/opt/scripts/"
+ if [ -d "$container_dir" ];then
+ HOST_IP=`grep 'ip' $container_dir/pod.yaml | awk -F ': ' '{print $NF}' | tail -1`
+ elif [ -d "$host_dir" ];then
+ HOST_IP=`grep 'ip' $host_dir/pod.yaml | awk -F ': ' '{print $NF}' | tail -1`
+ fi
echo $HOST_IP
}