From 3d0913725e034a2e659c45aa52b5b0416dcc405b Mon Sep 17 00:00:00 2001 From: Geliang Tang Date: Fri, 24 Nov 2023 23:57:32 +0800 Subject: [PATCH] Squash to "selftests: mptcp: add mptcp_lib_check_transfer" Keep consistency with other functions in mptcp_lib.sh. Use KSFT_PASS and KSFT_FAIL. Signed-off-by: Geliang Tang --- tools/testing/selftests/net/mptcp/mptcp_lib.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/net/mptcp/mptcp_lib.sh b/tools/testing/selftests/net/mptcp/mptcp_lib.sh index 1f8be9dd0e203e..4b30a9634f16eb 100644 --- a/tools/testing/selftests/net/mptcp/mptcp_lib.sh +++ b/tools/testing/selftests/net/mptcp/mptcp_lib.sh @@ -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}" @@ -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