From 305e05e958dfa0abfb26982eb8c00a9d0f5a3dd4 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Thu, 9 Oct 2025 15:00:31 +0900 Subject: [PATCH] tests: (lsfd/mkfds-unix-dgram) skip if the unix diag netlink interface is not available Signed-off-by: Masatake YAMATO --- tests/ts/lsfd/mkfds-unix-dgram | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/ts/lsfd/mkfds-unix-dgram b/tests/ts/lsfd/mkfds-unix-dgram index 0087a8d83..4b7519893 100755 --- a/tests/ts/lsfd/mkfds-unix-dgram +++ b/tests/ts/lsfd/mkfds-unix-dgram @@ -74,7 +74,10 @@ ts_init_subtest "abstract" ts_finalize_subtest ts_init_subtest "ENDPOINTS-column" -if ts_is_in_docker; then +if ! lsfd_check_sockdiag --subtest unix; then + # lsfd_check_sockdiag calls ts_skip_subtest or ts_failed_subtest. + : +elif ts_is_in_docker; then ts_skip_subtest "unsupported in docker environment" else { @@ -103,7 +106,10 @@ else fi ts_init_subtest "UNIX.IPEEER-column" -if ts_is_in_docker; then +if ! lsfd_check_sockdiag --subtest unix; then + # lsfd_check_sockdiag calls ts_skip_subtest or ts_failed_subtest. + : +elif ts_is_in_docker; then ts_skip_subtest "unsupported in docker environment" else { -- 2.47.3