Skip to content

Commit d00af5c

Browse files
committed
integration: issue7496 case should work for runc.v2 only
Signed-off-by: Wei Fu <[email protected]>
1 parent 583696e commit d00af5c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

integration/issue7496_linux_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ import (
4141
//
4242
// NOTE: https://github.com/containerd/containerd/issues/8931 is the same issue.
4343
func TestIssue7496(t *testing.T) {
44+
t.Logf("Checking CRI config's default runtime")
45+
criCfg, err := CRIConfig()
46+
require.NoError(t, err)
47+
48+
typ := criCfg.ContainerdConfig.Runtimes[criCfg.ContainerdConfig.DefaultRuntimeName].Type
49+
if !strings.HasSuffix(typ, "runc.v2") {
50+
t.Skipf("default runtime should be runc.v2, but it's not: %s", typ)
51+
}
52+
4453
ctx := namespaces.WithNamespace(context.Background(), "k8s.io")
4554

4655
t.Logf("Create a pod config and run sandbox container")

0 commit comments

Comments
 (0)