forked from TrueCloudLab/restic
Use flag instead of build tag to run integration tests
This commit is contained in:
parent
7c107acf0b
commit
12677b4f8a
5 changed files with 17 additions and 12 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue