diff --git a/cmd/nerdctl/container/container_run_systemd_linux_test.go b/cmd/nerdctl/container/container_run_systemd_linux_test.go index 065e450873c..e1a459eaf61 100644 --- a/cmd/nerdctl/container/container_run_systemd_linux_test.go +++ b/cmd/nerdctl/container/container_run_systemd_linux_test.go @@ -17,6 +17,7 @@ package container import ( + "runtime" "testing" "github.com/containerd/nerdctl/v2/pkg/testutil" @@ -36,6 +37,10 @@ func TestRunWithSystemdAlways(t *testing.T) { } func TestRunWithSystemdTrueEnabled(t *testing.T) { + if runtime.GOARCH != "amd64" { + t.Skip("This test is currently broken on arm with no emulation, as the Systemd image being used is amd64 only") + } + testutil.DockerIncompatible(t) t.Parallel() base := testutil.NewBase(t) @@ -60,6 +65,10 @@ systemctl list-jobs`).AssertOutContains("jobs") } func TestRunWithSystemdTrueDisabled(t *testing.T) { + if runtime.GOARCH != "amd64" { + t.Skip("This test is currently broken on arm with no emulation, as the Systemd image being used is amd64 only") + } + testutil.DockerIncompatible(t) t.Parallel() base := testutil.NewBase(t) @@ -94,6 +103,10 @@ func TestRunWithNoSystemd(t *testing.T) { } func TestRunWithSystemdPrivilegedError(t *testing.T) { + if runtime.GOARCH != "amd64" { + t.Skip("This test is currently broken on arm with no emulation, as the Systemd image being used is amd64 only") + } + testutil.DockerIncompatible(t) t.Parallel() base := testutil.NewBase(t) @@ -102,6 +115,10 @@ func TestRunWithSystemdPrivilegedError(t *testing.T) { } func TestRunWithSystemdPrivilegedSuccess(t *testing.T) { + if runtime.GOARCH != "amd64" { + t.Skip("This test is currently broken on arm with no emulation, as the Systemd image being used is amd64 only") + } + testutil.DockerIncompatible(t) t.Parallel() base := testutil.NewBase(t)