On SLE kernels there is a warning when a livepatch is disabled: livepatch: attempt to disable live patch test_klp_livepatch, setting NO_SUPPORT taint flag
Extend lightly the detection of messages when a livepatch is disabled to cover this case as well. Signed-off-by: Marcos Paulo de Souza <[email protected]> --- tools/testing/selftests/livepatch/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/livepatch/functions.sh b/tools/testing/selftests/livepatch/functions.sh index 781346d6e94e0..73a1d4e6acaeb 100644 --- a/tools/testing/selftests/livepatch/functions.sh +++ b/tools/testing/selftests/livepatch/functions.sh @@ -324,7 +324,7 @@ function check_result { # - filter out dmesg timestamp prefixes result=$(dmesg | awk -v last_dmesg="$LAST_DMESG" 'p; $0 == last_dmesg { p=1 }' | \ grep -e 'livepatch:' -e 'test_klp' | \ - grep -v '\(tainting\|taints\) kernel' | \ + grep -v '\(tainting\|taints\|taint\) \(kernel\|flag\)' | \ sed 's/^\[[ 0-9.]*\] //' | \ sed 's/^\[[ ]*[CT][0-9]*\] //') -- 2.52.0

