diff mbox series

[05/19] mdadm/tests: test don't fail when systemd reports error

Message ID 20240522085056.54818-6-xni@redhat.com (mailing list archive)
State Accepted
Headers show
Series mdadm/tests: enhance/fix regression cases | expand

Commit Message

Xiao Ni May 22, 2024, 8:50 a.m. UTC
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(-)

Comments

Mariusz Tkaczyk May 23, 2024, 2:29 p.m. UTC | #1
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 mbox series

Patch

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"