mirror of
https://github.com/restic/restic.git
synced 2026-11-13 22:43:03 +00:00
Add "Test" prefix to backend test functions
This commit is contained in:
1 parent
e4f2e4a203
commit
f05a32509e
13 files changed
+94
-94
No files matched your search
+2
-2
@@ -15,7 +15,7 @@ import (
|
||||
|
||||
var (
|
||||
TestPassword = getStringVar("RESTIC_TEST_PASSWORD", "geheim")
|
||||
TestCleanup = getBoolVar("RESTIC_TEST_CLEANUP", true)
|
||||
TestCleanupTempDirs = getBoolVar("RESTIC_TEST_CLEANUP", true)
|
||||
TestTempDir = getStringVar("RESTIC_TEST_TMPDIR", "")
|
||||
RunIntegrationTest = getBoolVar("RESTIC_TEST_INTEGRATION", true)
|
||||
RunFuseTest = getBoolVar("RESTIC_TEST_FUSE", true)
|
||||
@@ -70,7 +70,7 @@ func SetupRepo() *repository.Repository {
|
||||
}
|
||||
|
||||
func TeardownRepo(repo *repository.Repository) {
|
||||
if !TestCleanup {
|
||||
if !TestCleanupTempDirs {
|
||||
l := repo.Backend().(*local.Local)
|
||||
fmt.Printf("leaving local backend at %s\n", l.Location())
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user