summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorAlexander Neumann <alexander@bumpern.de>2016-01-23 19:12:02 +0100
committerAlexander Neumann <alexander@bumpern.de>2016-01-23 19:12:02 +0100
commitf05a32509e5535bce43047b7133afd1839162410 (patch)
tree9e4141e78e2197f14984c05ab73791dd1bc939c7 /cmd
parente4f2e4a2035c81e19d12dd9171c45d6749982836 (diff)
Add "Test" prefix to backend test functions
Diffstat (limited to 'cmd')
-rw-r--r--cmd/restic/integration_fuse_test.go2
-rw-r--r--cmd/restic/integration_helpers_test.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd/restic/integration_fuse_test.go b/cmd/restic/integration_fuse_test.go
index 5c5c2021f..1e696706b 100644
--- a/cmd/restic/integration_fuse_test.go
+++ b/cmd/restic/integration_fuse_test.go
@@ -60,7 +60,7 @@ func cmdMount(t testing.TB, global GlobalOptions, dir string, ready, done chan s
cmd := &CmdMount{global: &global, ready: ready, done: done}
OK(t, cmd.Execute([]string{dir}))
- if TestCleanup {
+ if TestCleanupTempDirs {
RemoveAll(t, dir)
}
}
diff --git a/cmd/restic/integration_helpers_test.go b/cmd/restic/integration_helpers_test.go
index 734d974c1..b3bada889 100644
--- a/cmd/restic/integration_helpers_test.go
+++ b/cmd/restic/integration_helpers_test.go
@@ -178,7 +178,7 @@ func configureRestic(t testing.TB, cache, repo string) GlobalOptions {
}
func cleanupTempdir(t testing.TB, tempdir string) {
- if !TestCleanup {
+ if !TestCleanupTempDirs {
t.Logf("leaving temporary directory %v used for test", tempdir)
return
}
@@ -209,7 +209,7 @@ func withTestEnvironment(t testing.TB, f func(*testEnvironment, GlobalOptions))
f(&env, configureRestic(t, env.cache, env.repo))
- if !TestCleanup {
+ if !TestCleanupTempDirs {
t.Logf("leaving temporary directory %v used for test", tempdir)
return
}