Add "Test" prefix to backend test functions

This commit is contained in:
Alexander Neumann
2016-01-23 19:12:02 +01:00
parent e4f2e4a203
commit f05a32509e
13 changed files with 94 additions and 94 deletions

View File

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

View File

@@ -158,7 +158,7 @@ func WithTestEnvironment(t testing.TB, repoFixture string, f func(repodir string
f(filepath.Join(tempdir, "repo"))
if !TestCleanup {
if !TestCleanupTempDirs {
t.Logf("leaving temporary directory %v used for test", tempdir)
return
}