Skip to content

Commit 537d752

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

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
@@ -42,6 +42,15 @@ import (
4242
//
4343
// NOTE: https://github.com/containerd/containerd/issues/8931 is the same issue.
4444
func TestIssue7496(t *testing.T) {
45+
t.Logf("Checking CRI config's default runtime")
46+
criCfg, err := CRIConfig()
47+
require.NoError(t, err)
48+
49+
typ := criCfg.ContainerdConfig.Runtimes[criCfg.ContainerdConfig.DefaultRuntimeName].Type
50+
if !strings.HasSuffix(typ, "runc.v2") {
51+
t.Skipf("default runtime should be runc.v2, but it's not: %s", typ)
52+
}
53+
4554
ctx := namespaces.WithNamespace(context.Background(), "k8s.io")
4655

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

0 commit comments

Comments
 (0)