test: add test that ensure disk space is doubled

Ensure that the disk size of a container is taken into account
when the image is generated. The current heuristic is that we
just double the container size.

The test will not build an image just generate a manifest and
check that the image file is generated with the expected size.
This commit is contained in:
Michael Vogt 2024-03-20 09:03:13 +01:00 committed by Simon de Vlieger
parent 2d95d34bb6
commit 1bfb930266

View file

@ -5,9 +5,10 @@ import (
"os"
"path/filepath"
"golang.org/x/sys/unix"
"github.com/osbuild/bootc-image-builder/bib/internal/podmanutil"
"github.com/osbuild/bootc-image-builder/bib/internal/util"
"golang.org/x/sys/unix"
)
// EnsureEnvironment mutates external filesystem state as necessary