Skip to content

Commit

Permalink
Merge pull request containerd#3846 from apostasie/fix-broken-systemd-…
Browse files Browse the repository at this point in the history
…test

Disable systemd test on arm64
  • Loading branch information
fahedouch authored Jan 28, 2025
2 parents c69f816 + 7c9d25a commit 528b852
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cmd/nerdctl/container/container_run_systemd_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package container

import (
"runtime"
"testing"

"github.com/containerd/nerdctl/v2/pkg/testutil"
Expand All @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 528b852

Please sign in to comment.