浏览代码

integration-cli: Skip TestRmiParentImageFail when using c8d snapshotters

With containerd image store the images don't depend on each other even
if they share the same content and it's totally fine to delete the
"parent" image.

The skip is necessary because deleting the "parent" image does not
produce an error with the c8d image store and deleting the `busybox`
image breaks other tests.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Paweł Gronowski 1 年之前
父节点
当前提交
4982c70db4
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      integration-cli/docker_cli_rmi_test.go

+ 3 - 0
integration-cli/docker_cli_rmi_test.go

@@ -12,6 +12,7 @@ import (
 	"github.com/docker/docker/pkg/stringid"
 	"gotest.tools/v3/assert"
 	"gotest.tools/v3/icmd"
+	"gotest.tools/v3/skip"
 )
 
 type DockerCLIRmiSuite struct {
@@ -303,6 +304,8 @@ RUN echo 2 #layer2
 }
 
 func (*DockerCLIRmiSuite) TestRmiParentImageFail(c *testing.T) {
+	skip.If(c, testEnv.UsingSnapshotter(), "image are independent when using the containerd image store")
+
 	buildImageSuccessfully(c, "test", build.WithDockerfile(`
 	FROM busybox
 	RUN echo hello`))