diff options
author | Xiao Ni <xni@redhat.com> | 2024-05-22 10:50:42 +0200 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-05-24 10:04:41 +0200 |
commit | 73ba062ef93d0a57360a2d5200bc7a8f8781e7b6 (patch) | |
tree | 770ef1499553cc26b2570e228a1d6ff93a42672e /test | |
parent | mdadm/tests: test enhance (diff) | |
download | mdadm-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-x | test | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |