From: Sam Hague Date: Sun, 3 Sep 2017 12:14:08 +0000 (-0400) Subject: Add test-suites option to run specific suites X-Git-Tag: release/nitrogen~81^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=bc4c42944a7d331f69dc95a91946bcb5ba6b20bf;p=releng%2Fbuilder.git Add test-suites option to run specific suites Change-Id: I7aba5c1ecdfd4b64e5d1f35555ba05133f7ec4fd Signed-off-by: Sam Hague --- diff --git a/jjb/integration/integration-deploy-openstack-run-test.sh b/jjb/integration/integration-deploy-openstack-run-test.sh index 72d36b2ae..0ae2bd252 100644 --- a/jjb/integration/integration-deploy-openstack-run-test.sh +++ b/jjb/integration/integration-deploy-openstack-run-test.sh @@ -821,7 +821,9 @@ 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' ' '` +if [ -z "${SUITES}" ]; then + SUITES=`egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' testplan.txt | tr '\012' ' '` +fi #Environment Variables Needed to execute Openstack Client for NEtvirt Jobs cat > /tmp/os_netvirt_client_rc << EOF diff --git a/jjb/integration/integration-macros.yaml b/jjb/integration/integration-macros.yaml index a7bea22a4..8af8e690d 100644 --- a/jjb/integration/integration-macros.yaml +++ b/jjb/integration/integration-macros.yaml @@ -87,6 +87,17 @@ default: '{test-plan}' description: 'General test plan we will run unless stream-specific one is found' +- parameter: + name: integration-test-suites + parameters: + - string: + name: SUITES + default: '{test-suites}' + description: | + List of space-separated suites. Useful when running specific suites within a testplan. + (ex. integration/test/csit/suites/openstack/connectivity/01_l2_tests.robot + integration/test/csit/suites/netvirt/ElanService/). + - parameter: name: integration-test-options parameters: diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml index cf0525e29..15aad57ec 100644 --- a/jjb/integration/integration-templates.yaml +++ b/jjb/integration/integration-templates.yaml @@ -1013,6 +1013,8 @@ test-options: '{robot-options}' - integration-test-plan: test-plan: '{testplan}' + - integration-test-suites: + test-suites: '{test-suites}' - integration-patch-refspec: branch: 'master' - integration-jdk-version: @@ -1200,6 +1202,8 @@ test-options: '{robot-options}' - integration-test-plan: test-plan: '{testplan}' + - integration-test-suites: + test-suites: '{test-suites}' - integration-patch-refspec: branch: 'master' - integration-jdk-version: diff --git a/jjb/releng-defaults.yaml b/jjb/releng-defaults.yaml index d9cea002f..eb2e88d2f 100644 --- a/jjb/releng-defaults.yaml +++ b/jjb/releng-defaults.yaml @@ -77,6 +77,7 @@ robot-options: '' trigger-jobs: '' debug-map: '' + test-suites: '' # Data for csit-verify jobs # Branch for "last" version detection