We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e528ae commit 8da46d5Copy full SHA for 8da46d5
crypto/pgp_test.go
@@ -27,6 +27,14 @@ func (s *CryptoPGPSuite) SetUpSuite(c *C) {
27
// Setup logging
28
log.SetOutput(os.Stdout)
29
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
38
ioutil.WriteFile(publicPath, []byte(publicKeyString), 0666)
39
ioutil.WriteFile(privatePath, []byte(privateKeyString), 0666)
40
os.Setenv("BLOCKER_PGP_PUBLICKEY", publicPath)
0 commit comments