From 712f7dfb4cdb729609de230e41255c5af0526860 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 23 Mar 2021 12:05:55 +0100 Subject: [PATCH] tests: ignore failure of zeroing Older mdadm fails the command, when the signature is already gone. --- test/lib/aux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 617d0b3a4..20736260f 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -796,7 +796,7 @@ cleanup_md_dev() { test "$DM_DEV_DIR" = "/dev" || rm -f "$(< MD_DEV_PV)" for dev in $(< MD_DEVICES); do - mdadm --zero-superblock "$dev" 2>/dev/null + mdadm --zero-superblock "$dev" 2>/dev/null || true done udev_wait rm -f MD_DEV MD_DEVICES MD_DEV_PV