Browse code

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 authored on 2017/03/28 23:12:41
Showing 1 changed files
... ...
@@ -321,6 +321,7 @@ func (s *DockerTrustSuite) TestTrustedIsolatedCreate(c *check.C) {
321 321
 
322 322
 	// Try create
323 323
 	icmd.RunCmd(icmd.Command(dockerBinary, "--config", "/tmp/docker-isolated-create", "create", repoName), trustedCmd).Assert(c, SuccessTagging)
324
+	defer os.RemoveAll("/tmp/docker-isolated-create")
324 325
 
325 326
 	dockerCmd(c, "rmi", repoName)
326 327
 }