*: enable ARM64 runner
There are many Kubernetes clusters running on ARM64. Enable ARM64 runner is to commit to support ARM64 platform officially. Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
||||
"syscall"
|
||||
"testing"
|
||||
|
||||
kernel "github.com/containerd/containerd/v2/contrib/seccomp/kernelversion"
|
||||
"github.com/containerd/continuity/testutil"
|
||||
"github.com/stretchr/testify/require"
|
||||
"golang.org/x/sys/unix"
|
||||
@@ -45,6 +46,13 @@ var (
|
||||
func TestGetUsernsFD(t *testing.T) {
|
||||
testutil.RequiresRoot(t)
|
||||
|
||||
k512 := kernel.KernelVersion{Kernel: 5, Major: 12}
|
||||
ok, err := kernel.GreaterEqualThan(k512)
|
||||
require.NoError(t, err)
|
||||
if !ok {
|
||||
t.Skip("GetUsernsFD requires kernel >= 5.12")
|
||||
}
|
||||
|
||||
t.Run("basic", testGetUsernsFDBasic)
|
||||
|
||||
t.Run("when kill child process before write u[g]id maps", testGetUsernsFDKillChildWhenWriteUGIDMaps)
|
||||
|
||||
Reference in New Issue
Block a user