]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (lsfd) fix IPv4 label in lsfd_check_udp_lite skip message
authorKarel Zak <kzak@redhat.com>
Mon, 11 May 2026 09:59:23 +0000 (11:59 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 11 May 2026 09:59:23 +0000 (11:59 +0200)
The local variable $ip is reset to empty for IPv4 (to form the
"udp" command name), so the skip message "no UDP-Lite available
(IPv$ip)" was printing "(IPv)" instead of "(IPv4)". Use $1
which retains the original argument.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/lsfd/lsfd-functions.bash

index 305ae9ceb73ba404d0d0f5e4b80f9e181d88f587..dd04cbed544d795e45f40237fab87735d7926643 100644 (file)
@@ -203,7 +203,7 @@ function lsfd_check_udp_lite
            0)
                return;;
            "$EPROTONOSUPPORT")
-               ts_skip "no UDP-Lite available (IPv$ip)";;
+               ts_skip "no UDP-Lite available (IPv$1)";;
            *)
                ts_failed "failed to use a IPPROTO_UDPLITE protocol: $msg [$err]";;
        esac