Skip to content

Commit 6321260

Browse files
matttbePaolo Abeni
authored andcommitted
selftests: mptcp: userspace pm: 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: 259a834 ("selftests: mptcp: functional tests for the userspace PM type") 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 cf6f0fd commit 6321260

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

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

4+
. "$(dirname "${0}")/mptcp_lib.sh"
5+
6+
mptcp_lib_check_mptcp
7+
48
ip -Version > /dev/null 2>&1
59
if [ $? -ne 0 ];then
610
echo "SKIP: Cannot not run test without ip tool"

0 commit comments

Comments
 (0)