Skip to content

Commit

Permalink
Squash to "selftests: mptcp: connect: use += operator to append strings"
Browse files Browse the repository at this point in the history
Append the fallback note into 'extra' string too.

Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
Geliang Tang authored and intel-lab-lkp committed Mar 7, 2024
1 parent 9528fa7 commit 640d219
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/testing/selftests/net/mptcp/mptcp_connect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ do_transfer()
mptcp_lib_check_transfer $cin $sout "file received by server"
rets=$?

local extra=""
local stat_synrx_now_l
local stat_ackrx_now_l
local stat_cookietx_now
Expand Down Expand Up @@ -484,7 +485,7 @@ do_transfer()
"than expected (${expect_ackrx})"
rets=1
else
printf "[ Note ] fallback due to TCP OoO"
extra+=" [ Note ] fallback due to TCP OoO"
fi
fi

Expand All @@ -507,8 +508,6 @@ do_transfer()
fi
fi

local extra=""

if [ $cookies -eq 2 ];then
if [ $stat_cookietx_last -ge $stat_cookietx_now ] ;then
extra+=" WARN: CookieSent: did not advance"
Expand Down

0 comments on commit 640d219

Please sign in to comment.