summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorMatthieu Baerts <matthieu.baerts@tessares.net>2023-06-10 19:11:40 +0300
committerJakub Kicinski <kuba@kernel.org>2023-06-13 02:55:42 +0300
commit4a0b866a3f7d3c22033f40e93e94befc6fe51bce (patch)
tree886670962442b2c21e9766a6c6aa0a6c4ab885b0 /virt
parent47867f0a7e831e24e5eab3330667ce9682d50fb1 (diff)
downloadlinux-4a0b866a3f7d3c22033f40e93e94befc6fe51bce.tar.xz
selftests: mptcp: join: skip test if iptables/tc cmds fail
Selftests are supposed to run on any kernels, including the old ones not supporting all MPTCP features. Some tests are using IPTables and/or TC commands to force some behaviours. If one of these commands fails -- likely because some features are not available due to missing kernel config -- we should intercept the error and skip the tests requiring these features. Note that if we expect to have these features available and if SELFTESTS_MPTCP_LIB_EXPECT_ALL_FEATURES env var is set to 1, the tests will be marked as failed instead of skipped. This patch also replaces the 'exit 1' by 'return 1' not to stop the selftest in the middle without the conclusion if there is an issue with NF or TC. Link: https://github.com/multipath-tcp/mptcp_net-next/issues/368 Fixes: 8d014eaa9254 ("selftests: mptcp: add ADD_ADDR timeout test case") Cc: stable@vger.kernel.org Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions