X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Fintegration%2Finclude-raw-integration-start-cluster-run-test.sh;h=61f5dac337d33128ce4422c2f32e26e674a6bbfb;hb=5e09c11291db332a7d97465b7a61f7dc3eadac65;hp=681132c6857e5abe267bdb728630a9933d8c58c8;hpb=f29bd3551c5b6e68a9fbbd97cd1751037b550eb5;p=releng%2Fbuilder.git diff --git a/jjb/integration/include-raw-integration-start-cluster-run-test.sh b/jjb/integration/include-raw-integration-start-cluster-run-test.sh index 681132c68..61f5dac33 100644 --- a/jjb/integration/include-raw-integration-start-cluster-run-test.sh +++ b/jjb/integration/include-raw-integration-start-cluster-run-test.sh @@ -75,12 +75,6 @@ fi echo "Cool down for ${COOLDOWN_PERIOD} seconds :)..." sleep ${COOLDOWN_PERIOD} -echo "Changing the testplan path..." -cat ${WORKSPACE}/test/csit/testplans/${TESTPLAN} | sed "s:integration:${WORKSPACE}:" > testplan.txt -cat testplan.txt - -SUITES=`egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' testplan.txt | tr '\012' ' '` - echo "Generating controller variables..." for i in `seq 1 ${NUM_ODL_SYSTEM}` do @@ -95,9 +89,22 @@ do tools_variables=${tools_variables}" -v ${MININETIP}:${!MININETIP}" done +echo "Locating test plan to use..." +testplan_filepath="${WORKSPACE}/test/csit/testplans/${STREAMTESTPLAN}" +if [ ! -f "${testplan_filepath}" ]; then + testplan_filepath="${WORKSPACE}/test/csit/testplans/${TESTPLAN}" +fi + +echo "Changing the testplan path..." +cat "${testplan_filepath}" | sed "s:integration:${WORKSPACE}:" > testplan.txt +cat testplan.txt + +SUITES=`egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' testplan.txt | tr '\012' ' '` + echo "Starting Robot test suites ${SUITES} ..." -pybot -N ${TESTPLAN} -c critical -e exclude -v BUNDLEFOLDER:${BUNDLEFOLDER} -v WORKSPACE:/tmp -v BUNDLE_URL:${ACTUALBUNDLEURL} \ --v NEXUSURL_PREFIX:${NEXUSURL_PREFIX} -v JDKVERSION:${JDKVERSION} \ +pybot -N ${TESTPLAN} -c critical -e exclude -v BUNDLEFOLDER:${BUNDLEFOLDER} \ +-v WORKSPACE:/tmp -v BUNDLE_URL:${ACTUALBUNDLEURL} -v JAVA_HOME:${JAVA_HOME} \ +-v NEXUSURL_PREFIX:${NEXUSURL_PREFIX} -v JDKVERSION:${JDKVERSION} -v ODL_STREAM:${DISTROSTREAM} \ -v CONTROLLER:${ODL_SYSTEM_IP} -v CONTROLLER1:${ODL_SYSTEM_2_IP} -v CONTROLLER2:${ODL_SYSTEM_3_IP} -v ODL_SYSTEM_IP:${ODL_SYSTEM_IP} \ ${odl_variables} -v NUM_ODL_SYSTEM:${NUM_ODL_SYSTEM} -v CONTROLLER_USER:${USER} -v ODL_SYSTEM_USER:${USER} -v \ TOOLS_SYSTEM_IP:${TOOLS_SYSTEM_IP} ${tools_variables} -v NUM_TOOLS_SYSTEM:${NUM_TOOLS_SYSTEM} -v TOOLS_SYSTEM_USER:${USER} \