mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +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:
parent
48bf9b5056
commit
8233cb94cd
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user