Allow configuring temp dir for tests

This commit is contained in:
Alexander Neumann
2015-02-21 16:53:14 +01:00
parent a59b0ec1f6
commit ef498a987b
2 changed files with 3 additions and 2 deletions

View File

@@ -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 {