Skip to content

Commit cf6f0fd

Browse files
matttbePaolo Abeni
authored andcommitted
selftests: mptcp: sockopt: 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: dc65fe8 ("selftests: mptcp: add packet mark test case") 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 9161f21 commit cf6f0fd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
22
# SPDX-License-Identifier: GPL-2.0
33

4+
. "$(dirname "${0}")/mptcp_lib.sh"
5+
46
ret=0
57
sin=""
68
sout=""
@@ -84,6 +86,8 @@ cleanup()
8486
rm -f "$sin" "$sout"
8587
}
8688

89+
mptcp_lib_check_mptcp
90+
8791
ip -Version > /dev/null 2>&1
8892
if [ $? -ne 0 ];then
8993
echo "SKIP: Could not run test without ip tool"

0 commit comments

Comments
 (0)