Add test-suites option to run specific suites 86/62586/3
authorSam Hague <shague@redhat.com>
Sun, 3 Sep 2017 12:14:08 +0000 (08:14 -0400)
committerSam Hague <shague@redhat.com>
Mon, 4 Sep 2017 22:30:38 +0000 (18:30 -0400)
Change-Id: I7aba5c1ecdfd4b64e5d1f35555ba05133f7ec4fd
Signed-off-by: Sam Hague <shague@redhat.com>
jjb/integration/integration-deploy-openstack-run-test.sh
jjb/integration/integration-macros.yaml
jjb/integration/integration-templates.yaml
jjb/releng-defaults.yaml

index 72d36b2aeee3c7989855b48ca2ea4e60f61b8c6e..0ae2bd2522bdb3823836170e833cd7dc880947bc 100644 (file)
@@ -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
index a7bea22a49013158ff19fdd150c254bab716f4a1..8af8e690d1db17525168d5d8262082579124e9ca 100644 (file)
           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:
index cf0525e290eb2d45517e014c0f928aca447d6ae5..15aad57ec04f53073e8e02a03656dacc29f02dd5 100644 (file)
           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:
           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:
index d9cea002fdab5e4d1827a74fe891da0b9bbf9cf2..eb2e88d2f118c0dad2614c53ee71e382c0ed16ca 100644 (file)
@@ -77,6 +77,7 @@
     robot-options: ''
     trigger-jobs: ''
     debug-map: ''
+    test-suites: ''
 
     # Data for csit-verify jobs
     # Branch for "last" version detection