distro: remove architecture names and use platform enum
Removing the dependence of the manifest package on the distro package to import manifest into distro. Wherever arch names are needed, we use the enums from the platform package instead.
This commit is contained in:
parent
0f925c445c
commit
8f69088af1
31 changed files with 108 additions and 101 deletions
|
|
@ -15,7 +15,7 @@ import (
|
|||
|
||||
"github.com/osbuild/osbuild-composer/cmd/osbuild-image-tests/constants"
|
||||
"github.com/osbuild/osbuild-composer/internal/common"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro"
|
||||
"github.com/osbuild/osbuild-composer/internal/platform"
|
||||
)
|
||||
|
||||
// WithNetworkNamespace provides the function f with a new network namespace
|
||||
|
|
@ -138,7 +138,7 @@ func WithBootedQemuImage(image string, ns NetNS, f func() error) error {
|
|||
"-nographic",
|
||||
image,
|
||||
)
|
||||
} else if common.CurrentArch() == distro.Aarch64ArchName {
|
||||
} else if common.CurrentArch() == platform.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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue