mirror of
https://github.com/home-assistant/operating-system.git
synced 2026-02-15 07:29:08 +00:00
Fix kernel tainted test (#3818)
I have only tested that it fails for unreleased 6.6.72 kernel but haven't tested the happy path and missed that it also failed because the types were different. Stupid me.
This commit is contained in:
@@ -83,4 +83,4 @@ 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 output == "0\n", f"Kernel tainted: {output}"
|
||||
assert "\n".join(output) == "0", f"Kernel tainted: {output}"
|
||||
|
||||
@@ -197,4 +197,4 @@ 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 output == "0\n", f"Kernel tainted: {output}"
|
||||
assert "\n".join(output) == "0", f"Kernel tainted: {output}"
|
||||
|
||||
Reference in New Issue
Block a user