소스 검색

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`))