diff options
-rw-r--r-- | tests/07autoassemble | 3 | ||||
-rw-r--r-- | tests/func.sh | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/07autoassemble b/tests/07autoassemble index b6630e17..5372b920 100644 --- a/tests/07autoassemble +++ b/tests/07autoassemble @@ -45,6 +45,7 @@ mdadm -CR $md2 -l1 -n2 $dev2 $dev3 mdadm -CR $md0 -l0 -n2 $md1 $md2 mdadm -Ss mdadm -As -c /dev/null +cat /proc/mdstat # For logs if [ $is_foreign == "yes" ]; then # md127 is md1 testdev $md127 1 $mdsize1a 64 @@ -55,6 +56,6 @@ if [ $is_foreign == "yes" ]; then else testdev $md1 1 $mdsize1a 64 testdev $md2 1 $mdsize1a 64 - testdev $md0 2 $mdsize11a 512 + testdev $md127 2 $mdsize11a 512 fi mdadm -Ss diff --git a/tests/func.sh b/tests/func.sh index 46d77eec..61a35a86 100644 --- a/tests/func.sh +++ b/tests/func.sh @@ -445,7 +445,7 @@ no_errors() { # basic device test testdev() { - [ -b $1 ] || die "$1 isn't a block device." + lsblk -no name $1 || die "$1 isn't a block device." [ "$DEVTYPE" == "disk" ] && return 0 udevadm settle dev=$1 |