1717package container
1818
1919import (
20+ "runtime"
2021 "testing"
2122
2223 "github.com/containerd/nerdctl/v2/pkg/testutil"
@@ -36,6 +37,10 @@ func TestRunWithSystemdAlways(t *testing.T) {
3637}
3738
3839func TestRunWithSystemdTrueEnabled (t * testing.T ) {
40+ if runtime .GOARCH != "amd64" {
41+ t .Skip ("This test is currently broken on arm with no emulation, as the Systemd image being used is amd64 only" )
42+ }
43+
3944 testutil .DockerIncompatible (t )
4045 t .Parallel ()
4146 base := testutil .NewBase (t )
@@ -60,6 +65,10 @@ systemctl list-jobs`).AssertOutContains("jobs")
6065}
6166
6267func TestRunWithSystemdTrueDisabled (t * testing.T ) {
68+ if runtime .GOARCH != "amd64" {
69+ t .Skip ("This test is currently broken on arm with no emulation, as the Systemd image being used is amd64 only" )
70+ }
71+
6372 testutil .DockerIncompatible (t )
6473 t .Parallel ()
6574 base := testutil .NewBase (t )
@@ -94,6 +103,10 @@ func TestRunWithNoSystemd(t *testing.T) {
94103}
95104
96105func TestRunWithSystemdPrivilegedError (t * testing.T ) {
106+ if runtime .GOARCH != "amd64" {
107+ t .Skip ("This test is currently broken on arm with no emulation, as the Systemd image being used is amd64 only" )
108+ }
109+
97110 testutil .DockerIncompatible (t )
98111 t .Parallel ()
99112 base := testutil .NewBase (t )
@@ -102,6 +115,10 @@ func TestRunWithSystemdPrivilegedError(t *testing.T) {
102115}
103116
104117func TestRunWithSystemdPrivilegedSuccess (t * testing.T ) {
118+ if runtime .GOARCH != "amd64" {
119+ t .Skip ("This test is currently broken on arm with no emulation, as the Systemd image being used is amd64 only" )
120+ }
121+
105122 testutil .DockerIncompatible (t )
106123 t .Parallel ()
107124 base := testutil .NewBase (t )
0 commit comments