Message ID | 20240522085056.54818-6-xni@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | mdadm/tests: enhance/fix regression cases | expand |
On Wed, 22 May 2024 16:50:42 +0800 Xiao Ni <xni@redhat.com> wrote: > Sometimes systemd reports error in dmesg and test fails. Add > a condition to avoid this failure. > > Signed-off-by: Xiao Ni <xni@redhat.com> > --- Applied! Thanks, Mariusz
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"
Sometimes systemd reports error in dmesg and test fails. Add a condition to avoid this failure. Signed-off-by: Xiao Ni <xni@redhat.com> --- test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)