- @{suite names} Get Regexp Matches ${SUITES} coe\\/(\\w+).robot 1
- @{suite names updated} Create List
- : FOR ${suites} IN @{suite names}
- \ ${suites} Replace String ${suites} _ ${SPACE}
- \ Append To List ${suite names updated} ${suites}
- ${suite line} ${current suite} Should Match Regexp ${SUITE_NAME} .txt.(\\w.*)
- [Return] ${current suite} ${suite names updated}
+ BuiltIn.Log SUITE_NAME: ${SUITE_NAME}
+ BuiltIn.Log SUITES: ${SUITES}
+ @{suite_names} Get Regexp Matches ${SUITES} coe\\/(\\w+).robot 1
+ @{suite_names_updated} Create List
+ : FOR ${suite} IN @{suite_names}
+ \ ${suite} Replace String ${suite} _ ${SPACE}
+ \ Append To List ${suite_names_updated} ${suite}
+ ${num_suites} = BuiltIn.Get Length ${suite_names_updated}
+ ${suite line} ${current_suite} = BuiltIn.Run Keyword If ${num_suites} > ${1} Should Match Regexp ${SUITE_NAME} .txt.(\\w.*)
+ ... ELSE BuiltIn.Set Variable @{suite_names_updated}[0] @{suite_names_updated}[0]
+ [Return] ${current_suite} ${suite_names_updated}
+
+Check For Stale veth Ports
+ [Documentation] Check on switches(except master) where pods were created and deleted to ensure there are no stale veth ports left behind.
+ : FOR ${minion_index} IN RANGE 2 ${NUM_TOOLS_SYSTEM}+1
+ \ ${switch output} = Utils.Run Command On Remote System And Log ${TOOLS_SYSTEM_${minion_index}_IP} sudo ovs-vsctl show
+ \ BuiltIn.Should Not Contain ${switch output} veth