Skip to content

Commit

Permalink
selftests: mptcp: userspace pm: skip PM listener events tests if unav…
Browse files Browse the repository at this point in the history
…ailable

Selftests are supposed to run on any kernels, including the old ones not
supporting all MPTCP features.

One of them is the new listener events for the PM. We can skip these
tests if the feature is not supported.

Link: multipath-tcp/mptcp_net-next#368
Fixes: 6c73008 ("selftests: mptcp: listener test for userspace PM")
Signed-off-by: Matthieu Baerts <[email protected]>
  • Loading branch information
matttbe authored and intel-lab-lkp committed Apr 7, 2023
1 parent e31a0ab commit 7188b4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/testing/selftests/net/mptcp/userspace_pm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,11 @@ test_listener()
{
print_title "Listener tests"

if ! mptcp_lib_kallsyms_has "mptcp_event_pm_listener$"; then
echo "SKIP: PM LISTENER events not supported"
return
fi

# Capture events on the network namespace running the client
:>$client_evts

Expand Down

0 comments on commit 7188b4c

Please sign in to comment.