diff options
author | juraj.linkes <juraj.linkes@pantheon.tech> | 2019-07-19 11:37:18 +0200 |
---|---|---|
committer | Vratko Polak <vrpolak@cisco.com> | 2019-07-19 12:18:55 +0000 |
commit | bf33e6ad528aa29989b2d074e49b631fa584cbed (patch) | |
tree | 5e539436979e672c082d6f9c9fda540a1a86f087 /resources/libraries/bash/function/common.sh | |
parent | b836fd8d6d096a9c9688dab166b0beac8a8d3f92 (diff) |
Add support for default_nic in mrr tag lists
Change-Id: I1fdc6f3019af6d46b985164c573d44b0e440febd
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
Diffstat (limited to 'resources/libraries/bash/function/common.sh')
-rw-r--r-- | resources/libraries/bash/function/common.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh index a7f79e0de9..696fc71189 100644 --- a/resources/libraries/bash/function/common.sh +++ b/resources/libraries/bash/function/common.sh @@ -727,6 +727,7 @@ function select_tags () { ;; esac + sed_nic_sub_cmd="sed s/\${default_nic}/${default_nic}/" # Tag file directory shorthand. tfd="${BASH_FUNCTION_DIR}" case "${TEST_CODE}" in @@ -735,8 +736,8 @@ function select_tags () { readarray -t test_tag_array < "${tfd}/mlr-weekly.txt" || die ;; *"mrr-daily"* ) - readarray -t test_tag_array < \ - "${tfd}/mrr-daily-${FLAVOR}.txt" || die + readarray -t test_tag_array <<< $(${sed_nic_sub_cmd} \ + ${tfd}/mrr-daily-${FLAVOR}.txt) || die ;; *"mrr-weekly"* ) readarray -t test_tag_array < "${tfd}/mrr-weekly.txt" || die |