17
17
package container
18
18
19
19
import (
20
+ "runtime"
20
21
"testing"
21
22
22
23
"github.com/containerd/nerdctl/v2/pkg/testutil"
@@ -36,6 +37,10 @@ func TestRunWithSystemdAlways(t *testing.T) {
36
37
}
37
38
38
39
func 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
+
39
44
testutil .DockerIncompatible (t )
40
45
t .Parallel ()
41
46
base := testutil .NewBase (t )
@@ -60,6 +65,10 @@ systemctl list-jobs`).AssertOutContains("jobs")
60
65
}
61
66
62
67
func 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
+
63
72
testutil .DockerIncompatible (t )
64
73
t .Parallel ()
65
74
base := testutil .NewBase (t )
@@ -94,6 +103,10 @@ func TestRunWithNoSystemd(t *testing.T) {
94
103
}
95
104
96
105
func 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
+
97
110
testutil .DockerIncompatible (t )
98
111
t .Parallel ()
99
112
base := testutil .NewBase (t )
@@ -102,6 +115,10 @@ func TestRunWithSystemdPrivilegedError(t *testing.T) {
102
115
}
103
116
104
117
func 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
+
105
122
testutil .DockerIncompatible (t )
106
123
t .Parallel ()
107
124
base := testutil .NewBase (t )
0 commit comments