X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-apex-run-tests.sh;h=14f9f4a8a613d4c3adbcd7aaf631709e52c04edf;hb=923224801df212827c0f80f670904370f0a346bf;hp=e7875281b03c5ada6f8c7a9b871f287b50643888;hpb=2b88c2d3ca1ec5f35927b00ba4374e6714664235;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-apex-run-tests.sh b/jjb/integration/integration-apex-run-tests.sh index e7875281b..14f9f4a8a 100644 --- a/jjb/integration/integration-apex-run-tests.sh +++ b/jjb/integration/integration-apex-run-tests.sh @@ -8,8 +8,14 @@ source /tmp/common-functions.sh ${BUNDLEFOLDER} # Ensure we fail the job if any steps fail. set -ex -o pipefail +print_job_parameters + get_os_deploy +configure_karaf_log_for_apex $OPENSTACK_CONTROL_NODE_1_IP +get_features +configure_odl_features_for_apex $OPENSTACK_CONTROL_NODE_1_IP + # Swap out the ODL distribution DISTRO_UNDER_TEST=/tmp/odl.tar.gz wget --progress=dot:mega ${ACTUAL_BUNDLE_URL} @@ -98,25 +104,10 @@ ssh ${OPENSTACK_CONTROL_NODE_1_IP} "sudo ovs-vsctl show" ssh ${OPENSTACK_COMPUTE_NODE_1_IP} "sudo ovs-vsctl show" ssh ${OPENSTACK_COMPUTE_NODE_2_IP} "sudo ovs-vsctl show" -# Use the testplan if specific SUITES are not defined. -if [ -z "${SUITES}" ]; then - SUITES=`egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' testplan.txt | tr '\012' ' '` -else - newsuites="" - workpath="${WORKSPACE}/test/csit/suites" - for suite in ${SUITES}; do - fullsuite="${workpath}/${suite}" - if [ -z "${newsuites}" ]; then - newsuites+=${fullsuite} - else - newsuites+=" "${fullsuite} - fi - done - SUITES=${newsuites} -fi +get_test_suites SUITES echo "Starting Robot test suites ${SUITES} ..." -# please add pybot -v arguments on a single line and alphabetized +# please add robot -v arguments on a single line and alphabetized suite_num=0 for suite in ${SUITES}; do # prepend an incremental counter to the suite name so that the full robot log combining all the suites as is done @@ -125,7 +116,7 @@ for suite in ${SUITES}; do suite_index="$(printf %02d ${suite_num})" suite_name="$(basename ${suite} | cut -d. -f1)" log_name="${suite_index}_${suite_name}" - pybot -N ${log_name} \ + robot -N ${log_name} \ -c critical -e exclude -e skip_if_${DISTROSTREAM} -e NON_GATE \ --log log_${log_name}.html --report report_${log_name}.html --output output_${log_name}.xml \ --removekeywords wuks \ @@ -165,6 +156,7 @@ for suite in ${SUITES}; do -v RESTCONFPORT:8081 \ -v SECURITY_GROUP_MODE:${SECURITY_GROUP_MODE} \ -v SSH_KEY:robot_id_rsa \ + -v TOOLS_SYSTEM_IP: \ -v USER_HOME:${HOME} \ -v WORKSPACE:/tmp \ ${TESTOPTIONS} ${suite} || true