]> git.dujemihanovic.xyz Git - linux.git/commitdiff
selftests: mptcp: fix error path
authorPaolo Abeni <pabeni@redhat.com>
Sat, 27 Jul 2024 09:04:02 +0000 (11:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2024 12:31:27 +0000 (13:31 +0100)
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>
tools/testing/selftests/net/mptcp/mptcp_join.sh

index 9c091fc267c4c8c978e6ff4e74b705d3471ceecd..55d84a1bde15de0be5cca0b7abc877e2e02b2c4f 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