If a test case results in a kernel taint (WARN splat for example), make
sure the test script indicates this.
Signed-off-by: Florian Westphal <fw@strlen.de>
echo ""
ok=0
failed=0
+taint=0
+
+check_taint()
+{
+ read taint_now < /proc/sys/kernel/tainted
+ if [ $taint -ne $taint_now ] ; then
+ msg_warn "[FAILED] kernel is tainted: $taint -> $taint_now"
+ ((failed++))
+ fi
+}
+
+check_taint
+
for testfile in $(find_tests)
do
+ read taint < /proc/sys/kernel/tainted
kernel_cleanup
msg_info "[EXECUTING] $testfile"
msg_warn "[FAILED] $testfile"
fi
fi
+
+ check_taint
done
echo ""