Skip to content

Commit 8da46d5

Browse files
author
Keith Ball
committed
fix test
1 parent 6e528ae commit 8da46d5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crypto/pgp_test.go

+8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ func (s *CryptoPGPSuite) SetUpSuite(c *C) {
2727
// Setup logging
2828
log.SetOutput(os.Stdout)
2929
log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
30+
31+
depositoryDir := filepath.Join(os.TempDir(), "blocker")
32+
33+
err := os.Mkdir(depositoryDir, 0777)
34+
if err != nil && !os.IsExist(err) {
35+
panic("Unable to create directory: " + err.Error())
36+
}
37+
3038
ioutil.WriteFile(publicPath, []byte(publicKeyString), 0666)
3139
ioutil.WriteFile(privatePath, []byte(privateKeyString), 0666)
3240
os.Setenv("BLOCKER_PGP_PUBLICKEY", publicPath)

0 commit comments

Comments
 (0)