Attach platform data when creating images from tars

This commit is contained in:
Ettore Di Giacinto
2021-10-31 10:39:07 +01:00
parent 384ae8e833
commit d43b8c4af0
3 changed files with 23 additions and 8 deletions

View File

@@ -18,6 +18,7 @@ package image_test
import (
"os"
"path/filepath"
"runtime"
. "github.com/mudler/luet/pkg/api/core/image"
"github.com/mudler/luet/pkg/api/core/types"
@@ -58,7 +59,7 @@ var _ = Describe("Create", func() {
a.Compress(dir, 1)
// Unfortunately there is no other easy way to test this
err = CreateTar(srcTar.Name(), dst.Name(), "testimage")
err = CreateTar(srcTar.Name(), dst.Name(), "testimage", runtime.GOARCH, runtime.GOOS)
Expect(err).ToNot(HaveOccurred())
b.LoadImage(dst.Name())