aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>2024-02-15 19:25:34 +0100
committerDavid S. Miller <davem@davemloft.net>2024-02-18 10:25:00 +0000
commitd2a2547565a9f1ad7989f7e21f97cbf065a9390d (patch)
tree57b429f7242e2f96878871cbe912b4b32e289edc
parent045e9d812868a2d80b7a57b224ce8009444b7bbc (diff)
downloadlinux-d2a2547565a9f1ad7989f7e21f97cbf065a9390d.tar.gz
selftests: mptcp: pm nl: also list skipped tests
If the feature is not supported by older kernels, and instead of just ignoring some tests, we should mark them as skipped, so we can still track them. Fixes: d85555ac11f9 ("selftests: mptcp: pm_netlink: format subtests results in TAP") Cc: stable@vger.kernel.org Reviewed-by: Geliang Tang <geliang@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Notes
Fixes: d85555ac11f9 ("selftests: mptcp: pm_netlink: format subtests results in TAP") # v6.6-rc1 Stable: 4f1aa3853b95 # v6.6.19 Lore: https://lore.kernel.org/r/20240215-upstream-net-20240215-misc-fixes-v1-7-8c01a55d8f6a@kernel.org # linux-kselftest, lkml, mptcp, netdev, stable Lore: https://lore.kernel.org/r/20240227131632.217904897@linuxfoundation.org # linux-patches, stable Lore: https://lore.kernel.org/r/20240227131637.903583489@linuxfoundation.org # linux-patches, stable
-rwxr-xr-xtools/testing/selftests/net/mptcp/pm_netlink.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/mptcp/pm_netlink.sh b/tools/testing/selftests/net/mptcp/pm_netlink.sh
index 8f4ff123a7eb92..79e83a2c95dedd 100755
--- a/tools/testing/selftests/net/mptcp/pm_netlink.sh
+++ b/tools/testing/selftests/net/mptcp/pm_netlink.sh
@@ -194,6 +194,12 @@ subflow 10.0.1.1" " (nofullmesh)"
ip netns exec $ns1 ./pm_nl_ctl set id 1 flags backup,fullmesh
check "ip netns exec $ns1 ./pm_nl_ctl dump" "id 1 flags \
subflow,backup,fullmesh 10.0.1.1" " (backup,fullmesh)"
+else
+ for st in fullmesh nofullmesh backup,fullmesh; do
+ st=" (${st})"
+ printf "%-50s%s\n" "${st}" "[SKIP]"
+ mptcp_lib_result_skip "${st}"
+ done
fi
mptcp_lib_result_print_all_tap