def test_kernel_not_tainted(shell):
    """Check if the kernel is not tainted - do it at the end of the
    test suite to increase the chance of catching issues."""
    output = shell.run_check("cat /proc/sys/kernel/tainted")
    assert "\n".join(output) == "0", f"Kernel tainted: {output}"
Check if the kernel is not tainted - do it at the end of the
    test suite to increase the chance of catching issues.
tests/smoke_test/test_basic.py