mirror of
https://github.com/restic/restic.git
synced 2025-12-04 00:21:46 +00:00
Use flag instead of build tag to run integration tests
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// +build integration
|
||||
|
||||
package backend_test
|
||||
|
||||
import (
|
||||
@@ -37,6 +35,10 @@ func teardownSFTPBackend(t *testing.T, b *sftp.SFTP) {
|
||||
}
|
||||
|
||||
func TestSFTPBackend(t *testing.T) {
|
||||
if !*RunIntegrationTest {
|
||||
t.Skip("integration tests disabled, use `-test.integration` to enable")
|
||||
}
|
||||
|
||||
if *sftpPath == "" {
|
||||
t.Skipf("sftppath not set, skipping TestSFTPBackend")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user