Skip to content

Commit 9161f21

Browse files
matttbePaolo Abeni
authored andcommitted
selftests: mptcp: simult flows: 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: 1a418cb ("mptcp: simult flow self-tests") 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 46565ac commit 9161f21

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/testing/selftests/net/mptcp/simult_flows.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
sec=$(date +%s)
57
rndh=$(printf %x $sec)-$(mktemp -u XXXXXX)
68
ns1="ns1-$rndh"
@@ -34,6 +36,8 @@ cleanup()
3436
done
3537
}
3638

39+
mptcp_lib_check_mptcp
40+
3741
ip -Version > /dev/null 2>&1
3842
if [ $? -ne 0 ];then
3943
echo "SKIP: Could not run test without ip tool"

0 commit comments

Comments
 (0)