]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests/functions.sh: consider '+' for metadata in kernel version parsing
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Tue, 21 Apr 2026 19:01:01 +0000 (15:01 -0400)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Tue, 21 Apr 2026 19:03:38 +0000 (15:03 -0400)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
tests/functions.sh

index b0ce6ef71c21256d1855a6c649eb2fead4b86bc9..66831afbb752b77eff17c7b9732a6ff2a11a9aa8 100644 (file)
@@ -321,7 +321,7 @@ function ts_init_env {
        CHARSET="UTF-8"
        ASAN_OPTIONS="detect_leaks=0"
        UBSAN_OPTIONS="print_stacktrace=1:print_summary=1:halt_on_error=1"
-       KERNEL_VERSION_XYZ=$(uname -r | awk -F- '{print $1}')
+       KERNEL_VERSION_XYZ=$(uname -r | awk -F'[-+]' '{print $1}')
        KERNEL_VERSION_MAJOR=$(echo "$KERNEL_VERSION_XYZ" | awk -F. '{print $1}')
        KERNEL_VERSION_MINOR=$(echo "$KERNEL_VERSION_XYZ" | awk -F. '{print $2}')
        KERNEL_RELEASE=$(echo "$KERNEL_VERSION_XYZ" | awk -F. '{print $3}')