diff options
author | Jan Gelety <jgelety@cisco.com> | 2018-08-21 15:04:01 +0200 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2018-08-24 09:32:49 +0000 |
commit | a6018da33d315b25274d80816d8050ba66ea7901 (patch) | |
tree | 7b87a38f7e840d07a80e4f4c1fdb62f8a085d0d9 /resources/libraries/robot/shared | |
parent | cac2b4314f1f7eeabccdbeec542d510025b318b4 (diff) |
VPP link bonding perf tests with two links between DUTs
Jira: CSIT-1247
Change-Id: Ia6a3f7682eb9a35040682913c0e33a1d61d1e6fa
Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/robot/shared')
-rw-r--r-- | resources/libraries/robot/shared/default.robot | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/resources/libraries/robot/shared/default.robot b/resources/libraries/robot/shared/default.robot index 137e2e829a..ecce5762b8 100644 --- a/resources/libraries/robot/shared/default.robot +++ b/resources/libraries/robot/shared/default.robot @@ -156,8 +156,18 @@ | | ${num_mbufs_int} | Convert to Integer | 16384 | | ${duts}= | Get Matches | ${nodes} | DUT* | | :FOR | ${dut} | IN | @{duts} -| | | ${numa}= | Get interfaces numa node | ${nodes['${dut}']} -| | | ... | ${${dut}_if1} | ${${dut}_if2} +| | | ${if1_status} | ${value}= | Run Keyword And Ignore Error +| | | ... | Variable Should Exist | ${${dut}_if1} +| | | @{if_list}= | Run Keyword If | '${if1_status}' == 'PASS' +| | | ... | Create List | ${${dut}_if1} +| | | ... | ELSE | Create List | ${${dut}_if1_1} | ${${dut}_if1_2} +| | | ${if2_status} | ${value}= | Run Keyword And Ignore Error +| | | ... | Variable Should Exist | ${${dut}_if2} +| | | Run Keyword If | '${if2_status}' == 'PASS' +| | | ... | Append To List | ${if_list} | ${${dut}_if2} +| | | ... | ELSE +| | | ... | Append To List | ${if_list} | ${${dut}_if2_1} | ${${dut}_if2_2} +| | | ${numa}= | Get interfaces numa node | ${nodes['${dut}']} | @{if_list} | | | ${smt_used}= | Is SMT enabled | ${nodes['${dut}']['cpuinfo']} | | | ${cpu_main}= | Cpu list per node str | ${nodes['${dut}']} | ${numa} | | | ... | skip_cnt=${1} | cpu_cnt=${1} |