stress2: Fix cleanup on exit

This commit is contained in:
Peter Holm 2021-05-26 08:05:55 +02:00
parent 5184e2da41
commit 79f27053e4

View File

@ -71,5 +71,10 @@ while [ $((`date +%s` - start)) -lt 300 ]; do
fsck_ffs -fyR /dev/md$mdstart > $log 2>&1; s=$? fsck_ffs -fyR /dev/md$mdstart > $log 2>&1; s=$?
[ $s -ne 0 ] && break [ $s -ne 0 ] && break
done 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 exit $s