Browse Source

Fix issue #30201 – clean trust folder at the end of the test

This test doesn't clean the folder where it stores it's config (and
the trust folder), and thus, it fails if we run it more than
once (could also affect other tests at some point).

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Vincent Demeester 8 years ago
parent
commit
16377f4d16
1 changed files with 1 additions and 0 deletions
  1. 1 0
      integration-cli/docker_cli_create_test.go

+ 1 - 0
integration-cli/docker_cli_create_test.go

@@ -321,6 +321,7 @@ func (s *DockerTrustSuite) TestTrustedIsolatedCreate(c *check.C) {
 
 
 	// Try create
 	// Try create
 	icmd.RunCmd(icmd.Command(dockerBinary, "--config", "/tmp/docker-isolated-create", "create", repoName), trustedCmd).Assert(c, SuccessTagging)
 	icmd.RunCmd(icmd.Command(dockerBinary, "--config", "/tmp/docker-isolated-create", "create", repoName), trustedCmd).Assert(c, SuccessTagging)
+	defer os.RemoveAll("/tmp/docker-isolated-create")
 
 
 	dockerCmd(c, "rmi", repoName)
 	dockerCmd(c, "rmi", repoName)
 }
 }