From 16377f4d1667b9234c12be7991de6bd1c472c9a4 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Tue, 28 Mar 2017 16:12:41 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20issue=20#30201=20=E2=80=93=20clean=20trus?= =?UTF-8?q?t=20folder=20at=20the=20end=20of=20the=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- integration-cli/docker_cli_create_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/integration-cli/docker_cli_create_test.go b/integration-cli/docker_cli_create_test.go index 58ab6b20e1..46ff4634a4 100644 --- a/integration-cli/docker_cli_create_test.go +++ b/integration-cli/docker_cli_create_test.go @@ -321,6 +321,7 @@ func (s *DockerTrustSuite) TestTrustedIsolatedCreate(c *check.C) { // Try create 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) }