Skip to content

Commit

Permalink
Squash to "selftests: mptcp: add chk_subflows_total helper"
Browse files Browse the repository at this point in the history
Add missing "local dump_stats".

Otherwise, no place to set 0 to dump_stats, if a test fails. Then
unexpected dump infos will be showed in all the subsequent outputs
of chk_subflows_total().

Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
geliangtang authored and intel-lab-lkp committed Nov 18, 2023
1 parent 4fb8133 commit f69bce5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/testing/selftests/net/mptcp/mptcp_join.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1841,6 +1841,7 @@ chk_subflows_total()
local cnt1
local cnt2
local info="subflows_total"
local dump_stats

# if subflows_total counter is supported, use it:
if [ -n "$(ss -N $ns1 -inmHM | mptcp_lib_get_info_value $info $info)" ]; then
Expand Down

0 comments on commit f69bce5

Please sign in to comment.