]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (lsfd/mkfds-unix-dgram) skip if the unix diag netlink interface is not available
authorMasatake YAMATO <yamato@redhat.com>
Thu, 9 Oct 2025 06:00:31 +0000 (15:00 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 9 Oct 2025 06:02:05 +0000 (15:02 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/ts/lsfd/mkfds-unix-dgram

index 0087a8d833a50094c246a06816ce6330a31b1351..4b751989387435d79eb1927e6f6de941423a2604 100755 (executable)
@@ -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
     {