summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorXiao Ni <xni@redhat.com>2024-05-22 10:50:42 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-05-24 10:04:41 +0200
commit73ba062ef93d0a57360a2d5200bc7a8f8781e7b6 (patch)
tree770ef1499553cc26b2570e228a1d6ff93a42672e /test
parentmdadm/tests: test enhance (diff)
downloadmdadm-73ba062ef93d0a57360a2d5200bc7a8f8781e7b6.tar.xz
mdadm-73ba062ef93d0a57360a2d5200bc7a8f8781e7b6.zip
mdadm/tests: test don't fail when systemd reports error
Sometimes systemd reports error in dmesg and test fails. Add a condition to avoid this failure. Signed-off-by: Xiao Ni <xni@redhat.com> Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest2
1 files changed, 1 insertions, 1 deletions
diff --git a/test b/test
index ff403293..3da53f87 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"