Adjust code to new version of osbuild/images

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2023-12-05 13:37:23 +01:00 committed by Tomáš Hozza
parent 016051a4b8
commit 1afe7d20c8
6 changed files with 20 additions and 20 deletions

View file

@ -13,7 +13,7 @@ import (
"strings"
"time"
"github.com/osbuild/images/pkg/platform"
"github.com/osbuild/images/pkg/arch"
"github.com/osbuild/osbuild-composer/cmd/osbuild-image-tests/constants"
"github.com/osbuild/osbuild-composer/internal/common"
)
@ -138,7 +138,7 @@ func WithBootedQemuImage(image string, ns NetNS, f func() error) error {
"-nographic",
image,
)
} else if common.CurrentArch() == platform.ARCH_AARCH64.String() {
} else if common.CurrentArch() == arch.ARCH_AARCH64.String() {
// This command does not use KVM as I was unable to make it work in Beaker,
// once we have machines that can use KVM, enable it to make it faster
qemuCmd = ns.NamespacedCommand(