Skip tests where the old or the new image size seem to not fit into

the working directory.
This commit is contained in:
martin 2020-03-15 11:17:59 +00:00
parent 999e4e2245
commit b46551040d
1 changed files with 6 additions and 0 deletions

View File

@ -115,6 +115,12 @@ resize_ffs()
local fslevel=$5
local numdata=$6
local swap=$7
local avail=$( df -m . | awk '{if (int($4) > 0) print $4}' )
# convert MB size to blocks
avail=$(( $avail \* 2 \* 1024 ))
if [ $avail -lt $osize ] || [ $avail -lt $nsize ]; then
atf_skip "not enough free space in working directory"
fi
mkdir -p mnt
echo "bs is ${bs} numdata is ${numdata}"
echo "****resizing fs with blocksize ${bs}"