diff --git a/tests/smoke_test/test_basic.py b/tests/smoke_test/test_basic.py index 615695ff4..eb6d42b45 100644 --- a/tests/smoke_test/test_basic.py +++ b/tests/smoke_test/test_basic.py @@ -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}" diff --git a/tests/supervisor_test/test_supervisor.py b/tests/supervisor_test/test_supervisor.py index 92623e327..8351fb6c5 100644 --- a/tests/supervisor_test/test_supervisor.py +++ b/tests/supervisor_test/test_supervisor.py @@ -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}"