From 1bfb930266fdd39a21bd1c0b7d2b277f184844d2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 20 Mar 2024 09:03:13 +0100 Subject: [PATCH] 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. --- bib/internal/setup/setup.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bib/internal/setup/setup.go b/bib/internal/setup/setup.go index d29f72c..74f60fc 100644 --- a/bib/internal/setup/setup.go +++ b/bib/internal/setup/setup.go @@ -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