X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fbash%2Ffunction%2Fcommon.sh;h=0202fbe0d0e86f51c797255829627e6ee51fdfbe;hb=ebd0c7defaffdd6cd3ff2b5f580c86601917a0c7;hp=94fd6db1749d701ff5a7e8cd327c3b419bf5019d;hpb=0f162b406f0dec9446e29640f26b28e337a62022;p=csit.git diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh index 94fd6db174..0202fbe0d0 100644 --- a/resources/libraries/bash/function/common.sh +++ b/resources/libraries/bash/function/common.sh @@ -391,8 +391,6 @@ function select_tags () { # Variables set: # - TAGS - Array of processed tag boolean expressions. - # TODO: Empty exclude_nics (with failing grep) is expected, - # but others possible errors coule be checked explicitly. # NIC SELECTION # All topologies NICs available=$(grep -hoPR "model: \K.*" "${TOPOLOGIES_DIR}"/* | sort -u) @@ -440,6 +438,23 @@ function select_tags () { ;; esac + # Blacklisting certain tags per topology. + case "${TEST_CODE}" in + *"3n-hsw"*) + test_tag_array+=("!drv_avf") + ;; + *"2n-skx"*) + test_tag_array+=("!ipsechw") + ;; + *"3n-skx"*) + test_tag_array+=("!ipsechw") + ;; + *) + # Default to 3n-hsw due to compatibility. + test_tag_array+=("!drv_avf") + ;; + esac + # We will add excluded NICs. test_tag_array+=("${exclude_nics[@]/#/!NIC_}")