blob: 25840ae58e27ee06b93179b7cc3ed13d2f784bbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package blob
import (
"os"
"testing"
log "github.com/sirupsen/logrus"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
)
const scratchDir = "testdata/scratch"
var testRepoPath = ""
func TestMain(m *testing.M) {
testRepoPath = testhelper.GitlabTestRepoPath()
if err := os.MkdirAll(scratchDir, 0755); err != nil {
log.WithError(err).Fatal("mkdirall failed")
}
os.Exit(func() int {
return m.Run()
}())
}
|