Skip to content

Commit 715c78a

Browse files
matttbePaolo Abeni
authored andcommitted
selftests: mptcp: join: skip if MPTCP is not supported
Selftests are supposed to run on any kernels, including the old ones not supporting MPTCP. A new check is then added to make sure MPTCP is supported. If not, the test stops and is marked as "skipped". Link: multipath-tcp/mptcp_net-next#368 Fixes: b08fbf2 ("selftests: add test-cases for MPTCP MP_JOIN") Cc: stable@vger.kernel.org Acked-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 0f4955a commit 715c78a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/testing/selftests/net/mptcp/mptcp_join.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
# because it's invoked by variable name, see how the "tests" array is used
1111
#shellcheck disable=SC2317
1212

13+
. "$(dirname "${0}")/mptcp_lib.sh"
14+
1315
ret=0
1416
sin=""
1517
sinfail=""
@@ -137,6 +139,8 @@ cleanup_partial()
137139

138140
check_tools()
139141
{
142+
mptcp_lib_check_mptcp
143+
140144
if ! ip -Version &> /dev/null; then
141145
echo "SKIP: Could not run test without ip tool"
142146
exit $ksft_skip

0 commit comments

Comments
 (0)