summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Baerts <matthieu.baerts@tessares.net>2023-07-04 22:44:39 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-23 13:54:13 +0200
commit07e5fb9a29aaf2a71cb85ee4941b0b3651377ddf (patch)
treed29625679491547bf56b6a0d4f1eefe97200f8c3
parenteb7a979f6c35bd8ce40c16daca82e59d32aba492 (diff)
downloadlinux-stable-07e5fb9a29aaf2a71cb85ee4941b0b3651377ddf.tar.gz
linux-stable-07e5fb9a29aaf2a71cb85ee4941b0b3651377ddf.tar.bz2
linux-stable-07e5fb9a29aaf2a71cb85ee4941b0b3651377ddf.zip
selftests: mptcp: userspace_pm: report errors with 'remove' tests
commit 966c6c3adfb1257ea8a839cdfad2b74092cc5532 upstream. A message was mentioning an issue with the "remove" tests but the selftest was not marked as failed. Directly exit with an error like it is done everywhere else in this selftest. Link: https://github.com/multipath-tcp/mptcp_net-next/issues/368 Fixes: 259a834fadda ("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: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rwxr-xr-xtools/testing/selftests/net/mptcp/userspace_pm.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/mptcp/userspace_pm.sh b/tools/testing/selftests/net/mptcp/userspace_pm.sh
index 841a67a7d524..b180133a30af 100755
--- a/tools/testing/selftests/net/mptcp/userspace_pm.sh
+++ b/tools/testing/selftests/net/mptcp/userspace_pm.sh
@@ -423,6 +423,7 @@ test_remove()
stdbuf -o0 -e0 printf "[OK]\n"
else
stdbuf -o0 -e0 printf "[FAIL]\n"
+ exit 1
fi
# RM_ADDR using an invalid addr id should result in no action
@@ -437,6 +438,7 @@ test_remove()
stdbuf -o0 -e0 printf "[OK]\n"
else
stdbuf -o0 -e0 printf "[FAIL]\n"
+ exit 1
fi
# RM_ADDR from the client to server machine