]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
selftests: mptcp: fix error path
authorPaolo Abeni <pabeni@redhat.com>
Sat, 27 Jul 2024 09:04:02 +0000 (11:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Aug 2024 10:58:03 +0000 (12:58 +0200)
commit 4a2f48992ddf4b8c2fba846c6754089edae6db5a upstream.

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")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh

index 108aeeb84ef10a9ecba6239929d9e52c642a356f..864e8b960e4e382180a988ff9eb6aa23265bf98a 100755 (executable)
@@ -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