mirror of
https://github.com/restic/restic.git
synced 2025-10-09 19:10:25 +00:00
Remove flags from tests
This commit is contained in:
@@ -102,7 +102,7 @@ func testBackend(b backend.Backend, t *testing.T) {
|
||||
}
|
||||
|
||||
// remove content if requested
|
||||
if *TestCleanup {
|
||||
if TestCleanup {
|
||||
for _, test := range TestStrings {
|
||||
id, err := backend.ParseID(test.id)
|
||||
OK(t, err)
|
||||
|
@@ -22,7 +22,7 @@ func setupLocalBackend(t *testing.T) *local.Local {
|
||||
}
|
||||
|
||||
func teardownLocalBackend(t *testing.T, b *local.Local) {
|
||||
if !*TestCleanup {
|
||||
if !TestCleanup {
|
||||
t.Logf("leaving local backend at %s\n", b.Location())
|
||||
return
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@ func setupSFTPBackend(t *testing.T) *sftp.SFTP {
|
||||
}
|
||||
|
||||
func teardownSFTPBackend(t *testing.T, b *sftp.SFTP) {
|
||||
if !*TestCleanup {
|
||||
if !TestCleanup {
|
||||
t.Logf("leaving backend at %s\n", b.Location())
|
||||
return
|
||||
}
|
||||
@@ -35,7 +35,7 @@ func teardownSFTPBackend(t *testing.T, b *sftp.SFTP) {
|
||||
}
|
||||
|
||||
func TestSFTPBackend(t *testing.T) {
|
||||
if !*RunIntegrationTest {
|
||||
if !RunIntegrationTest {
|
||||
t.Skip("integration tests disabled, use `-test.integration` to enable")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user