mirror of
https://github.com/restic/restic.git
synced 2026-10-14 05:57:12 +00:00
Remove flags from tests
This commit is contained in:
1 parent
002c7883c3
commit
030f08a410
7 files changed
+44
-20
No files matched your search
+2
-2
@@ -22,7 +22,7 @@ var testFiles = []struct {
|
||||
}
|
||||
|
||||
func createTempDir(t *testing.T) string {
|
||||
tempdir, err := ioutil.TempDir(*TestTempDir, "restic-test-")
|
||||
tempdir, err := ioutil.TempDir(TestTempDir, "restic-test-")
|
||||
OK(t, err)
|
||||
|
||||
for _, test := range testFiles {
|
||||
@@ -49,7 +49,7 @@ func createTempDir(t *testing.T) string {
|
||||
func TestTree(t *testing.T) {
|
||||
dir := createTempDir(t)
|
||||
defer func() {
|
||||
if *TestCleanup {
|
||||
if TestCleanup {
|
||||
OK(t, os.RemoveAll(dir))
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in new issue
Block a user