mirror of
https://github.com/restic/restic.git
synced 2026-08-28 16:27:31 +00:00
Allow configuring temp dir for tests
This commit is contained in:
+1
-1
@@ -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