Add some more fudge factor for growroot test

It seems that 2MiB of fudge isn't quite enough; Trusty has been seen
to round it's root partition size down and we miss it.  Increase the
fudge factor.

Change-Id: I26e3bc7b5f68ea6642b8b57119fbd286688d593e
This commit is contained in:
Ian Wienand 2018-04-04 06:09:46 +10:00
parent ee78684521
commit 1ad32c2509
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function sshintonode {
# Check that the root partition grew on boot; it should be a 5GiB
# partition, but subtract some space for boot region.
root_size=$(/tmp/ssh_wrapper $node -- lsblk -rbno SIZE /dev/vda1)
expected_root_size=$(( (5 * 1024 * 1024 * 1024) - ( 2048 * 1024 ) ))
expected_root_size=$(( (5 * 1024 * 1024 * 1024) - ( 4096 * 1024 ) ))
if [[ $root_size -lt $expected_root_size ]]; then
echo "Root device does not appear to have grown: $root_size"
RETURN=1