Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

smb: skip non integration tests when doing integration tests

Nick Craig-Wood524c285d8844
diff --git a/backend/smb/smb_test.go b/backend/smb/smb_test.go
index f22bdb7f9..168966adb 100644
--- a/backend/smb/smb_test.go
+++ b/backend/smb/smb_test.go
@@ -6,6 +6,7 @@ import (
"testing"
"github.com/rclone/rclone/backend/smb"
+ "github.com/rclone/rclone/fstest"
"github.com/rclone/rclone/fstest/fstests"
)
@@ -18,6 +19,9 @@ func TestIntegration(t *testing.T) {
}
func TestIntegration2(t *testing.T) {
+ if *fstest.RemoteName != "" {
+ t.Skip("skipping as -remote is set")
+ }
krb5Dir := t.TempDir()
t.Setenv("KRB5_CONFIG", filepath.Join(krb5Dir, "krb5.conf"))
t.Setenv("KRB5CCNAME", filepath.Join(krb5Dir, "ccache"))