]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/rdma: explicitly skip tests when required modules are missing
authorYi Lai <yi1.lai@intel.com>
Thu, 7 May 2026 12:51:06 +0000 (20:51 +0800)
committerLeon Romanovsky <leon@kernel.org>
Wed, 13 May 2026 18:28:59 +0000 (14:28 -0400)
commit0bf1b4dda2d0c89980eab816778722cf51aa404c
tree26410cd82d20b9d6dd7002dc491b37cabb60a2c8
parent0b28000b64f40dd29a730507aa0447231960cfb8
selftests/rdma: explicitly skip tests when required modules are missing

Currently, the rdma rxe selftests fail with an exit code of 1 when
required kernel modules are not present. This causes spurious failures
in environments where these modules might not be compiled or available.

Include the standard kselftest 'ktap_helpers.sh' and replace the
hardcoded error exits with '$KSFT_SKIP'. This ensures the tests are
properly marked as skipped rather than failed.

Fixes: e01027cab38a ("RDMA/rxe: Add testcase for net namespace rxe")
Signed-off-by: Yi Lai <yi1.lai@intel.com>
Link: https://patch.msgid.link/20260507125106.3114167-1-yi1.lai@intel.com
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
tools/testing/selftests/rdma/rxe_ipv6.sh
tools/testing/selftests/rdma/rxe_rping_between_netns.sh
tools/testing/selftests/rdma/rxe_socket_with_netns.sh
tools/testing/selftests/rdma/rxe_test_NETDEV_UNREGISTER.sh