mirror of
https://github.com/restic/restic.git
synced 2025-12-26 00:16:37 +00:00
Allow configuring temp dir for tests
This commit is contained in:
@@ -21,7 +21,7 @@ var testFiles = []struct {
|
||||
|
||||
// prepareDir creates a temporary directory and returns it.
|
||||
func prepareDir(t *testing.T) string {
|
||||
tempdir, err := ioutil.TempDir("", "restic-test-")
|
||||
tempdir, err := ioutil.TempDir(*testTempDir, "restic-test-")
|
||||
ok(t, err)
|
||||
|
||||
for _, test := range testFiles {
|
||||
|
||||
Reference in New Issue
Block a user