Skip to content

Commit 1d24e65

Browse files
authored
Merge pull request #1518 from Jamstah/int-test-ignore
Stop test producing output in source directory
2 parents 789ee8b + 4dcd28d commit 1d24e65

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

integration/copy_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,12 +1190,14 @@ func (s *SkopeoSuite) TestCopySrcAndDestWithAuth(c *check.C) {
11901190
}
11911191

11921192
func (s *CopySuite) TestCopyNoPanicOnHTTPResponseWithoutTLSVerifyFalse(c *check.C) {
1193+
topDir, err := ioutil.TempDir("", "no-panic-on-https-response-without-tls-verify-false")
1194+
c.Assert(err, check.IsNil)
1195+
defer os.RemoveAll(topDir)
1196+
11931197
const ourRegistry = "docker://" + v2DockerRegistryURL + "/"
11941198

1195-
// dir:test isn't created beforehand just because we already know this could
1196-
// just fail when evaluating the src
11971199
assertSkopeoFails(c, ".*server gave HTTP response to HTTPS client.*",
1198-
"copy", ourRegistry+"foobar", "dir:test")
1200+
"copy", ourRegistry+"foobar", "dir:"+topDir)
11991201
}
12001202

12011203
func (s *CopySuite) TestCopySchemaConversion(c *check.C) {

0 commit comments

Comments
 (0)