Skip to content

Commit

Permalink
selftests: mptcp: join: print title after init_partial
Browse files Browse the repository at this point in the history
init_partial may fail sometimes, in that case, titles shouldn't be
printed out. So the patch moves mptcp_lib_print_title from the front
of init_partial to the back of it.

Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
Geliang Tang authored and intel-lab-lkp committed May 24, 2024
1 parent 6bc7c7c commit 318882a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/testing/selftests/net/mptcp/mptcp_join.sh
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ reset()
return 1
fi

mptcp_lib_print_title "${TEST_NAME}"

if [ "${init}" != "1" ]; then
init
else
Expand All @@ -279,6 +277,8 @@ reset()

init_partial

mptcp_lib_print_title "${TEST_NAME}"

return 0
}

Expand Down

0 comments on commit 318882a

Please sign in to comment.