diff mbox series

[mptcp-net,3/3] selftests: mptcp: fix error path

Message ID aa0ddd712e2b466b69ea87fba6158f13b850c1b1.1719589916.git.pabeni@redhat.com (mailing list archive)
State Superseded, archived
Commit 538cf9db944bc03ddd7031860f02ef6e17994243
Headers show
Series mptcp: fix signal endpoint readd | expand

Checks

Context Check Description
matttbe/build success Build and static analysis OK
matttbe/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
matttbe/shellcheck success No ShellCheck issues
matttbe/KVM_Validation__normal success Success! ✅
matttbe/KVM_Validation__debug success Success! ✅
matttbe/KVM_Validation__btf__only_bpftest_all_ success Success! ✅

Commit Message

Paolo Abeni June 28, 2024, 3:54 p.m. UTC
pm_nl_check_endpoint() currently calls an not existing helper
to mark the test as failed. Fix the wrong call.

Fixes: 03668c65d153 ("selftests: mptcp: join: rework detailed report")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
 tools/testing/selftests/net/mptcp/mptcp_join.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Matthieu Baerts (NGI0) July 2, 2024, 9:03 a.m. UTC | #1
On 28/06/2024 17:54, Paolo Abeni wrote:
> pm_nl_check_endpoint() currently calls an not existing helper
> to mark the test as failed. Fix the wrong call.
> 
> Fixes: 03668c65d153 ("selftests: mptcp: join: rework detailed report")

Good catch!

Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>

Cheers,
Matt
diff mbox series

Patch

diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh
index 228fecee61f9..c4593677a567 100755
--- a/tools/testing/selftests/net/mptcp/mptcp_join.sh
+++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh
@@ -661,7 +661,7 @@  pm_nl_check_endpoint()
 	done
 
 	if [ -z "${id}" ]; then
-		test_fail "bad test - missing endpoint id"
+		fail_test "bad test - missing endpoint id"
 		return
 	fi