aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash/function/common.sh
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2019-05-30 15:02:09 +0200
committerJan Gelety <jgelety@cisco.com>2019-06-04 08:03:37 +0000
commit1568878332fe52d48aa23f205e3c6f94e5c85fb7 (patch)
treeb14f7d9d02f641dd4a7a28768998e85efc6f1377 /resources/libraries/bash/function/common.sh
parent542ebb22567bb1c756686e2add057e58c5c1ba20 (diff)
Add possibility to use other then default NIC per VPP patch
Change-Id: I25e51022e0ec961fce444bc8f0f4413d0e95d7eb Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/bash/function/common.sh')
-rw-r--r--resources/libraries/bash/function/common.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh
index 1a9089d219..0daa1d31a0 100644
--- a/resources/libraries/bash/function/common.sh
+++ b/resources/libraries/bash/function/common.sh
@@ -694,7 +694,11 @@ function select_tags () {
if [[ "${TEST_CODE}" == "vpp-"* ]]; then
# Automatic prefixing for VPP jobs to limit the NIC used and
# traffic evaluation to MRR.
- prefix="${prefix}mrrAND${DEFAULT_NIC}AND"
+ if [[ "${TEST_TAG_STRING-}" == *"nic_"* ]]; then
+ prefix="${prefix}mrrAND"
+ else
+ prefix="${prefix}mrrAND${DEFAULT_NIC}AND"
+ fi
fi
for tag in "${test_tag_array[@]}"; do
if [[ "${tag}" == "!"* ]]; then