Skip to content

Commit

Permalink
Squash to "selftests: mptcp: add mptcp_lib_check_transfer"
Browse files Browse the repository at this point in the history
Keep consistency with other functions in mptcp_lib.sh.

Use KSFT_PASS and KSFT_FAIL.

Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
geliangtang authored and intel-lab-lkp committed Nov 24, 2023
1 parent 4ab47be commit 3d09137
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/testing/selftests/net/mptcp/mptcp_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,7 @@ mptcp_lib_make_file() {
}

# $1: file
mptcp_lib_print_file_err()
{
mptcp_lib_print_file_err() {
ls -l "${1}" 1>&2
echo "Trailing bytes are: "
tail -c 27 "${1}"
Expand All @@ -276,10 +275,10 @@ mptcp_lib_check_transfer() {
mptcp_lib_print_file_err "$in"
mptcp_lib_print_file_err "$out"

return 1
return ${KSFT_FAIL}
fi

return 0
return ${KSFT_PASS}
}

# $1: ns, $2: port
Expand Down

0 comments on commit 3d09137

Please sign in to comment.