test-mdadm.sh was failing when mdadm-detail tried to examine r5t2, which is
missing a member. This patch simply skips testing the problematic array.
---
regressions/test-mdadm.sh | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/regressions/test-mdadm.sh b/regressions/test-mdadm.sh
index 8119561..6cd23c4 100755
--- a/regressions/test-mdadm.sh
+++ b/regressions/test-mdadm.sh
@@ -99,8 +99,8 @@ eval `../fish/guestfish --listen`
../fish/guestfish --remote add-ro md-test4.img
../fish/guestfish --remote run
-for md in `../fish/guestfish --remote list-md-devices`; do
- ../fish/guestfish --remote mdadm-detail "${md}" > mdadm-detail.out
+for md in r1t1 r1t2 r5t1 r5t3; do # Not r5t2: it won't be active
+ ../fish/guestfish --remote mdadm-detail "/dev/md/${md}" > mdadm-detail.out
sed 's/:\s*/=/' mdadm-detail.out > mdadm-detail.out.sh
. mdadm-detail.out.sh
@@ -123,11 +123,6 @@ for md in `../fish/guestfish --remote list-md-devices`; do
[ "$devices" == "4" ] || error=1
;;
- *:r5t2)
- [ "$level" == "raid5" ] || error=1
- [ "$devices" == "3" ] || error=1
- ;;
-
*:r5t3)
[ "$level" == "raid5" ] || error=1
[ "$devices" == "2" ] || error=1
_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs