diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-07-04 18:09:30 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-07-04 18:09:30 +0200 |
commit | 33a474286b7e64429f73d9faf4f7e35e4b815bef (patch) | |
tree | eb6b2d3bdae300bdbdb856c1732ff1f816e9144d /pkg | |
parent | 5b1867923e1f1787e0675e9a808c3385b6348eee (diff) | |
download | podman-33a474286b7e64429f73d9faf4f7e35e4b815bef.tar.gz podman-33a474286b7e64429f73d9faf4f7e35e4b815bef.tar.bz2 podman-33a474286b7e64429f73d9faf4f7e35e4b815bef.zip |
pkg/machine: add missing build tags to tests
Machine can only run on amd64 and arm64 platforms so we need to make
sure the test are only run on those platforms. We do not have CI checks
for this but it fails in debian build infra since debian supports many
other architectures as well.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/machine/config_test.go | 3 | ||||
-rw-r--r-- | pkg/machine/qemu/config_test.go | 3 | ||||
-rw-r--r-- | pkg/machine/qemu/machine_test.go | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/pkg/machine/config_test.go b/pkg/machine/config_test.go index d9fc5425e..ca08660b9 100644 --- a/pkg/machine/config_test.go +++ b/pkg/machine/config_test.go @@ -1,3 +1,6 @@ +//go:build amd64 || arm64 +// +build amd64 arm64 + package machine import ( diff --git a/pkg/machine/qemu/config_test.go b/pkg/machine/qemu/config_test.go index 4d96ec6e7..72cb3ed90 100644 --- a/pkg/machine/qemu/config_test.go +++ b/pkg/machine/qemu/config_test.go @@ -1,3 +1,6 @@ +//go:build (amd64 && !windows) || (arm64 && !windows) +// +build amd64,!windows arm64,!windows + package qemu import ( diff --git a/pkg/machine/qemu/machine_test.go b/pkg/machine/qemu/machine_test.go index 62ca6068a..4c393d0f4 100644 --- a/pkg/machine/qemu/machine_test.go +++ b/pkg/machine/qemu/machine_test.go @@ -1,3 +1,6 @@ +//go:build (amd64 && !windows) || (arm64 && !windows) +// +build amd64,!windows arm64,!windows + package qemu import ( |