+ . /lkp/benchmarks/mdadm-selftests/tests/01r1fail ++ mdadm -CR /dev/md0 -l1 -n4 /dev/loop0 /dev/loop1 /dev/loop2 missing ++ rm -f /var/tmp/stderr ++ case $* in ++ case $* in ++ for args in $* ++ [[ -CR =~ /dev/ ]] ++ for args in $* ++ [[ /dev/md0 =~ /dev/ ]] ++ [[ /dev/md0 =~ md ]] ++ for args in $* ++ [[ -l1 =~ /dev/ ]] ++ for args in $* ++ [[ -n4 =~ /dev/ ]] ++ for args in $* ++ [[ /dev/loop0 =~ /dev/ ]] ++ [[ /dev/loop0 =~ md ]] ++ /lkp/benchmarks/mdadm-selftests/mdadm --zero /dev/loop0 mdadm: Unrecognised md component device - /dev/loop0 ++ for args in $* ++ [[ /dev/loop1 =~ /dev/ ]] ++ [[ /dev/loop1 =~ md ]] ++ /lkp/benchmarks/mdadm-selftests/mdadm --zero /dev/loop1 mdadm: Unrecognised md component device - /dev/loop1 ++ for args in $* ++ [[ /dev/loop2 =~ /dev/ ]] ++ [[ /dev/loop2 =~ md ]] ++ /lkp/benchmarks/mdadm-selftests/mdadm --zero /dev/loop2 mdadm: Unrecognised md component device - /dev/loop2 ++ for args in $* ++ [[ missing =~ /dev/ ]] ++ /lkp/benchmarks/mdadm-selftests/mdadm --quiet -CR /dev/md0 -l1 -n4 /dev/loop0 /dev/loop1 /dev/loop2 missing --auto=yes ++ rv=0 ++ case $* in ++ cat /var/tmp/stderr ++ return 0 ++ check resync ++ case $1 in ++ cnt=5 ++ grep -sq resync /proc/mdstat ++ mdadm /dev/md0 --fail /dev/loop2 ++ rm -f /var/tmp/stderr ++ case $* in ++ case $* in ++ /lkp/benchmarks/mdadm-selftests/mdadm --quiet /dev/md0 --fail /dev/loop2 ++ rv=0 ++ case $* in ++ cat /var/tmp/stderr ++ return 0 ++ check resync ++ case $1 in ++ cnt=5 ++ grep -sq resync /proc/mdstat ++ mdadm /dev/md0 --fail /dev/loop1 ++ rm -f /var/tmp/stderr ++ case $* in ++ case $* in ++ /lkp/benchmarks/mdadm-selftests/mdadm --quiet /dev/md0 --fail /dev/loop1 ++ rv=0 ++ case $* in ++ cat /var/tmp/stderr ++ return 0 ++ sleep 1 ++ check nosync ++ case $1 in ++ sleep 0.5 ++ grep -sq -E '(resync|recovery|reshape) *=' /proc/mdstat +++ sed '/^ *\([0-9]*\) \/ \1/d' +++ grep / /sys/block/md0/md/sync_completed ++ incomplete='2432 / 37888' ++ '[' -n '2432 / 37888' ']' ++ die 'resync or recovery is happening!' ++ echo -e '\n\tERROR: resync or recovery is happening! \n' ERROR: resync or recovery is happening! ++ save_log fail ++ status=fail ++ logfile=fail01r1fail.log ++ cat /var/tmp/stderr ++ cp /var/tmp/log /var/tmp/01r1fail.log ++ echo '## lkp-ivb-d04: saving dmesg.' ++ dmesg -c ++ echo '## lkp-ivb-d04: saving proc mdstat.' ++ cat /proc/mdstat ++ array=($(mdadm -Ds | cut -d' ' -f2)) +++ mdadm -Ds +++ rm -f /var/tmp/stderr +++ cut '-d ' -f2 +++ case $* in +++ case $* in +++ /lkp/benchmarks/mdadm-selftests/mdadm --quiet -Ds +++ rv=0 +++ case $* in +++ cat /var/tmp/stderr +++ return 0 ++ '[' fail == fail ']' ++ echo 'FAILED - see /var/tmp/01r1fail.log and /var/tmp/fail01r1fail.log for details' FAILED - see /var/tmp/01r1fail.log and /var/tmp/fail01r1fail.log for details ++ '[' loop == lvm ']' ++ '[' loop == loop -o loop == disk ']' ++ '[' '!' -z /dev/md0 -a 1 -ge 1 ']' ++ echo '## lkp-ivb-d04: mdadm -D /dev/md0' ++ /lkp/benchmarks/mdadm-selftests/mdadm -D /dev/md0 ++ cat /proc/mdstat ++ grep -q 'linear\|external' ++ md_disks=($($mdadm -D -Y ${array[@]} | grep "/dev/" | cut -d'=' -f2)) +++ /lkp/benchmarks/mdadm-selftests/mdadm -D -Y /dev/md0 +++ grep /dev/ +++ cut -d= -f2 ++ cat /proc/mdstat ++ grep -q bitmap ++ '[' 1 -eq 0 ']' ++ exit 2