From: Christian Goeschel Ndjomouo Date: Tue, 21 Apr 2026 19:01:01 +0000 (-0400) Subject: tests/functions.sh: consider '+' for metadata in kernel version parsing X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=e66a38b448bfc3d5c4448bc5f3235a2e230cd06a;p=thirdparty%2Futil-linux.git tests/functions.sh: consider '+' for metadata in kernel version parsing Signed-off-by: Christian Goeschel Ndjomouo --- diff --git a/tests/functions.sh b/tests/functions.sh index b0ce6ef71..66831afbb 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -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}')