From a5780b7d00a37bb5266daf72a9a314b07801c4c2 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Mon, 21 Apr 2025 22:28:16 -0400 Subject: [PATCH] Fix el10 not skipping the format-version-forward-back test The logic only accounted for single-digit versions. With el10, that breaks. Signed-off-by: Auke Kok --- tests/tests/format-version-forward-back.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests/format-version-forward-back.sh b/tests/tests/format-version-forward-back.sh index d907ef49..ed5543c1 100644 --- a/tests/tests/format-version-forward-back.sh +++ b/tests/tests/format-version-forward-back.sh @@ -11,8 +11,8 @@ # format version. # -# not supported on el8 or higher -if [ $(source /etc/os-release ; echo ${VERSION_ID:0:1}) -gt 7 ]; then +# not supported on el8, or higher versions. +if [ $(source /etc/os-release ; echo ${VERSION_ID} | cut -d. -f1) -gt 7 ]; then t_skip_permitted "Unsupported OS version" fi