X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-deploy-controller-run-test.sh;h=b3da33674beb45cbc8bfa469e0394a2fc9162301;hb=ecb4770d31a9794ab8b28cadbc23cfaa6e8fa229;hp=b56e4958afe3367712d7a923356757add7d19ee3;hpb=c4941c962a803dde9193c2757d8e8878c792c515;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 b56e4958a..b3da33674 100644 --- a/jjb/integration/integration-deploy-controller-run-test.sh +++ b/jjb/integration/integration-deploy-controller-run-test.sh @@ -4,7 +4,7 @@ # script. # shellcheck source=${ROBOT_VENV}/bin/activate disable=SC1091 source ${ROBOT_VENV}/bin/activate - +source /tmp/common-functions.sh ${BUNDLEFOLDER} if [ "${ENABLE_HAPROXY_FOR_NEUTRON}" == "yes" ]; then echo "Configure cluster" @@ -45,6 +45,8 @@ if [ -f "${WORKSPACE}/test/csit/scriptplans/${TESTPLAN}" ]; then fi cat > ${WORKSPACE}/configuration-script.sh <> ${LOGCONF} -# Add custom logging levels -# CONTROLLERDEBUGMAP is expected to be a key:value map of space separated values like "module:level module2:level2" -# where module is abbreviated and does not include org.opendaylight -unset IFS -if [ -n "${CONTROLLERDEBUGMAP}" ]; then - for kv in ${CONTROLLERDEBUGMAP}; do - module=\${kv%%:*} - level=\${kv#*:} - if [ -n \${module} ] && [ -n \${level} ]; then - echo "log4j.logger.org.opendaylight.\${module} = \${level}" >> ${LOGCONF} - fi - done -fi -cat ${LOGCONF} +configure_karaf_log "${KARAF_VERSION}" "${CONTROLLERDEBUGMAP}" -set_java_vars +set_java_vars "${JAVA_HOME}" "${CONTROLLERMEM}" "${MEMCONF}" echo "Listing all open ports on controller system..." netstat -pnatu @@ -128,6 +110,7 @@ if [ "${ENABLE_HAPROXY_FOR_NEUTRON}" == "yes" ]; then fi EOF +# cat > ${WORKSPACE}/configuration-script.sh < ${WORKSPACE}/startup-script.sh < ${WORKSPACE}/startup-script.sh < ${WORKSPACE}/post-startup-script.sh < ${WORKSPACE}/post-startup-script.sh <