From: Phil Sutter Date: Fri, 9 May 2025 12:46:50 +0000 (+0200) Subject: tests: shell: Include kernel taint value in warning X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb64add5ba6f4f0abb819c50c91cc41eedb5f5ab;p=thirdparty%2Fnftables.git tests: shell: Include kernel taint value in warning If kernel is already tainted, not all tests yield usable results. Printing the taint cause might help users tracking down the external cause. If a test taints the kernel, the value is stored in rc-failed-tainted file already. Signed-off-by: Phil Sutter --- diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh index 6a9b518c..2d2e0ad1 100755 --- a/tests/shell/run-tests.sh +++ b/tests/shell/run-tests.sh @@ -784,7 +784,7 @@ check_kmemleak() read kernel_tainted < /proc/sys/kernel/tainted if [ "$kernel_tainted" -ne 0 ] ; then - msg_warn "kernel is tainted" + msg_warn "kernel is tainted ($kernel_tainted)" echo fi