diff --git a/tools/test/stress2/misc/force7.sh b/tools/test/stress2/misc/force7.sh index 9eef1936cb98..1e987bc13a72 100755 --- a/tools/test/stress2/misc/force7.sh +++ b/tools/test/stress2/misc/force7.sh @@ -71,5 +71,10 @@ while [ $((`date +%s` - start)) -lt 300 ]; do fsck_ffs -fyR /dev/md$mdstart > $log 2>&1; s=$? [ $s -ne 0 ] && break done -[ $s -eq 0 ] && rm -f $diskimage $log || cat $log +if [ $s -eq 0 ]; then + mdconfig -d -u $mdstart + rm -f $diskimage $log +else + cat $log +fi exit $s