From 3b65f7721f1b692397b9adaa79e273d43ffe798e Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 24 Nov 2024 00:16:27 +0300 Subject: [PATCH] CI: Add a kernel version parsing test --- .github/workflows/functional_test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/functional_test.sh b/.github/workflows/functional_test.sh index ed2285d..5dd841e 100644 --- a/.github/workflows/functional_test.sh +++ b/.github/workflows/functional_test.sh @@ -171,6 +171,8 @@ coverage run -a --branch bin/kernel-hardening-checker -c error.config && exit 1 echo ">>>>> strange kernel version in kconfig <<<<<" sed '3s/Linux/WAT/' test.config > error.config coverage run -a --branch bin/kernel-hardening-checker -c error.config && exit 1 +sed '3s/6\./a\./' test.config > error.config +coverage run -a --branch bin/kernel-hardening-checker -c error.config && exit 1 echo ">>>>> strange kernel version via -v <<<<<" sed '3d' test.config > error.config -- 2.31.1