X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-deploy-controller-run-test.sh;h=ee5e91fc7e953b5cf8515156529d23e62ea254ee;hb=ce09803738da885b55fda8b9de4200223ee58010;hp=e04cfd7bddb100c014704f8941e6d691c5271942;hpb=b41e5755e5546acbd6b6d4494e420049e3d1ec23;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-deploy-controller-run-test.sh b/jjb/integration/integration-deploy-controller-run-test.sh index e04cfd7bd..ee5e91fc7 100755 --- a/jjb/integration/integration-deploy-controller-run-test.sh +++ b/jjb/integration/integration-deploy-controller-run-test.sh @@ -1,12 +1,18 @@ #!/bin/bash #@IgnoreInspection BashAddShebang + +if [ "${IS_KARAF_APPL}" = "False" ] ; then + echo "Not a Karaf Distro skipping karaf deployment" + exit +fi # Activate robotframework virtualenv # ${ROBOT_VENV} comes from the integration-install-robotframework.sh # script. # shellcheck source=${ROBOT_VENV}/bin/activate disable=SC1091 -source "${ROBOT_VENV}/bin/activate" +. "${ROBOT_VENV}/bin/activate" source /tmp/common-functions.sh "${BUNDLEFOLDER}" + echo "#################################################" echo "## Configure Cluster and Start ##" echo "#################################################" @@ -54,7 +60,7 @@ echo "Starting Robot test suites ${SUITES} ..." # ${TESTOPTIONS}, ${SUITES} are space-separated parameters and should not be quoted. # shellcheck disable=SC2086 robot -N "${TESTPLAN}" \ - --removekeywords wuks -c critical -e exclude -e "skip_if_${DISTROSTREAM}" \ + --removekeywords wuks -e exclude -e "skip_if_${DISTROSTREAM}" \ -v BUNDLEFOLDER:"${BUNDLEFOLDER}" \ -v BUNDLE_URL:"${ACTUAL_BUNDLE_URL}" \ -v CONTROLLER:"${ODL_SYSTEM_IP}" \ @@ -83,6 +89,7 @@ robot -N "${TESTPLAN}" \ -v TOOLS_SYSTEM_IP:"${TOOLS_SYSTEM_IP}" ${tools_variables} \ -v TOOLS_SYSTEM_USER:"${USER}" \ -v USER_HOME:"${HOME}" \ + -v IS_KARAF_APPL:"${IS_KARAF_APPL}" \ -v WORKSPACE:/tmp \ ${TESTOPTIONS} ${SUITES} || true @@ -91,11 +98,13 @@ echo "Examining the files in data/log and checking filesize" ssh "${ODL_SYSTEM_IP}" "ls -altr /tmp/${BUNDLEFOLDER}/data/log/" # shellcheck disable=SC2029 ssh "${ODL_SYSTEM_IP}" "du -hs /tmp/${BUNDLEFOLDER}/data/log/*" +# shellcheck disable=SC2029 +ssh "${ODL_SYSTEM_IP}" "ls -lh /tmp/${BUNDLEFOLDER}/*.hprof" for i in $(seq 1 "${NUM_ODL_SYSTEM}") do CONTROLLERIP="ODL_SYSTEM_${i}_IP" - echo "Lets's take the karaf thread dump again..." + echo "Let's take the karaf thread dump again..." ssh "${!CONTROLLERIP}" "sudo ps aux" > "${WORKSPACE}"/ps_after.log pid=$(grep org.apache.karaf.main.Main "${WORKSPACE}/ps_after.log" | grep -v grep | tr -s ' ' | cut -f2 -d' ') echo "karaf main: org.apache.karaf.main.Main, pid:${pid}"