Skip to content

Commit 7c9d25a

Browse files
committed
Disable systemd test on arm64
Signed-off-by: apostasie <[email protected]>
1 parent 300a705 commit 7c9d25a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

cmd/nerdctl/container/container_run_systemd_linux_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package container
1818

1919
import (
20+
"runtime"
2021
"testing"
2122

2223
"github.com/containerd/nerdctl/v2/pkg/testutil"
@@ -36,6 +37,10 @@ func TestRunWithSystemdAlways(t *testing.T) {
3637
}
3738

3839
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+
3944
testutil.DockerIncompatible(t)
4045
t.Parallel()
4146
base := testutil.NewBase(t)
@@ -60,6 +65,10 @@ systemctl list-jobs`).AssertOutContains("jobs")
6065
}
6166

6267
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+
6372
testutil.DockerIncompatible(t)
6473
t.Parallel()
6574
base := testutil.NewBase(t)
@@ -94,6 +103,10 @@ func TestRunWithNoSystemd(t *testing.T) {
94103
}
95104

96105
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+
97110
testutil.DockerIncompatible(t)
98111
t.Parallel()
99112
base := testutil.NewBase(t)
@@ -102,6 +115,10 @@ func TestRunWithSystemdPrivilegedError(t *testing.T) {
102115
}
103116

104117
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+
105122
testutil.DockerIncompatible(t)
106123
t.Parallel()
107124
base := testutil.NewBase(t)

0 commit comments

Comments
 (0)