diff options
author | Peter Mikus <pmikus@cisco.com> | 2018-08-17 14:56:16 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2018-08-17 15:01:51 +0000 |
commit | f804b6e7852698a8ae041f4bda6f7257c9dc0e5f (patch) | |
tree | c0e90e41bea67ac5f172b3188cd37bb0dda2a6f2 /bootstrap-verify-perf.sh | |
parent | ca0944a9746c9f6cbad696469861516b22b92a02 (diff) |
Add NIC exclusion for all jobs in perf bootstrap
This patch is suppose to move the processing logic for all job
types, including timed trigger perf jobs. This should eliminate MRR job
to run NIC tests not in topology file.
Change-Id: I9add5073266bd37fd3ef2c6efe7244b41e85f2a9
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'bootstrap-verify-perf.sh')
-rwxr-xr-x | bootstrap-verify-perf.sh | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/bootstrap-verify-perf.sh b/bootstrap-verify-perf.sh index 731c5da324..2cf61a8ce0 100755 --- a/bootstrap-verify-perf.sh +++ b/bootstrap-verify-perf.sh @@ -335,26 +335,26 @@ EXCLUDE_NICS=($(comm -13 <(printf '%s\n' "${TOPOLOGY_NICS[@]}") <(printf '%s\n' case "$TEST_CODE" in # Select specific performance tests based on jenkins job type variable. *ndrpdr-weekly* ) - TAGS=(ndrpdrANDnic_intel-x520-da2AND1c - ndrpdrANDnic_intel-x520-da2AND2c - ndrpdrAND1cANDipsec - ndrpdrAND2cANDipsec) + TEST_TAG_ARRAY=(ndrpdrANDnic_intel-x520-da2AND1c + ndrpdrANDnic_intel-x520-da2AND2c + ndrpdrAND1cANDipsec + ndrpdrAND2cANDipsec) ;; *ndrpdr-timed* ) ;; *mrr-daily* ) - TAGS=(mrrAND64bAND1c - mrrAND64bAND2c - mrrAND64bAND4c - mrrAND78bAND1c - mrrAND78bAND2c - mrrAND78bAND4c - mrrANDimixAND1cANDvhost - mrrANDimixAND2cANDvhost - mrrANDimixAND4cANDvhost - mrrANDimixAND1cANDmemif - mrrANDimixAND2cANDmemif - mrrANDimixAND4cANDmemif) + TEST_TAG_ARRAY=(mrrAND64bAND1c + mrrAND64bAND2c + mrrAND64bAND4c + mrrAND78bAND1c + mrrAND78bAND2c + mrrAND78bAND4c + mrrANDimixAND1cANDvhost + mrrANDimixAND2cANDvhost + mrrANDimixAND4cANDvhost + mrrANDimixAND1cANDmemif + mrrANDimixAND2cANDmemif + mrrANDimixAND4cANDmemif) ;; * ) if [[ -z "$TEST_TAG_STRING" ]]; then @@ -367,31 +367,31 @@ case "$TEST_CODE" in else # If trigger contains tags, split them into array. TEST_TAG_ARRAY=(${TEST_TAG_STRING//:/ }) - # We will add excluded NICs. - TEST_TAG_ARRAY+=("${EXCLUDE_NICS[@]/#/!NIC_}") fi - - TAGS=() - - # We will prefix with perftest to prevent running other tests - # (e.g. Functional). - prefix="perftestAND" - if [[ ${TEST_CODE} == vpp-* ]]; then - # Automatic prefixing for VPP jobs to limit the NIC used and - # traffic evaluation to MRR. - prefix="${prefix}mrrANDnic_intel-x710AND" - fi - for TAG in "${TEST_TAG_ARRAY[@]}"; do - if [[ ${TAG} == "!"* ]]; then - # Exclude tags are not prefixed. - TAGS+=("${TAG}") - else - TAGS+=("$prefix${TAG}") - fi - done ;; esac +# We will add excluded NICs. +TEST_TAG_ARRAY+=("${EXCLUDE_NICS[@]/#/!NIC_}") + +TAGS=() + +# We will prefix with perftest to prevent running other tests (e.g. Functional). +prefix="perftestAND" +if [[ ${TEST_CODE} == vpp-* ]]; then + # Automatic prefixing for VPP jobs to limit the NIC used and + # traffic evaluation to MRR. + prefix="${prefix}mrrANDnic_intel-x710AND" +fi +for TAG in "${TEST_TAG_ARRAY[@]}"; do + if [[ ${TAG} == "!"* ]]; then + # Exclude tags are not prefixed. + TAGS+=("${TAG}") + else + TAGS+=("$prefix${TAG}") + fi +done + # Catenate TAG selections EXPANDED_TAGS=() for TAG in "${TAGS[@]}"; do |