Sometimes systemd reports error in dmesg and test fails. Add a condition to avoid this failure. Signed-off-by: Xiao Ni <xni@xxxxxxxxxx> --- test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test b/test index ff403293d60b..3da53f871122 100755 --- a/test +++ b/test @@ -109,7 +109,7 @@ do_test() { if [ -f "${_script}.inject_error" ]; then echo "dmesg checking is skipped because test inject error" else - dmesg | grep -iq "error\|call trace\|segfault" && + dmesg | grep -iq "error\|call trace\|segfault" | grep -v "systemd" && die "dmesg prints errors when testing $_basename!" fi echo "succeeded" -- 2.32.0 (Apple Git-132)