Skip to content

Commit 629b35a

Browse files
geliangtangkuba-moo
authored andcommitted
selftests: mptcp: display simult in extra_msg
Just like displaying "invert" after "Info: ", "simult" should be displayed too when rm_subflow_nr doesn't match the expect value in chk_rm_nr(): syn [ ok ] synack [ ok ] ack [ ok ] add [ ok ] echo [ ok ] rm [ ok ] rmsf [ ok ] 3 in [2:4] Info: invert simult syn [ ok ] synack [ ok ] ack [ ok ] add [ ok ] echo [ ok ] rm [ ok ] rmsf [ ok ] Info: invert Reviewed-by: Matthieu Baerts <[email protected]> Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent e71aab6 commit 629b35a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/testing/selftests/net/mptcp/mptcp_join.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,10 @@ chk_rm_nr()
17701770
# in case of simult flush, the subflow removal count on each side is
17711771
# unreliable
17721772
count=$((count + cnt))
1773-
[ "$count" != "$rm_subflow_nr" ] && suffix="$count in [$rm_subflow_nr:$((rm_subflow_nr*2))]"
1773+
if [ "$count" != "$rm_subflow_nr" ]; then
1774+
suffix="$count in [$rm_subflow_nr:$((rm_subflow_nr*2))]"
1775+
extra_msg="$extra_msg simult"
1776+
fi
17741777
if [ $count -ge "$rm_subflow_nr" ] && \
17751778
[ "$count" -le "$((rm_subflow_nr *2 ))" ]; then
17761779
print_ok "$suffix"

0 commit comments

Comments
 (0)