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

build: disable cmount tests under macOS and the CI since they are locking up

Nick Craig-Wood83b6b62c1b0e
diff --git a/cmd/cmount/mount_test.go b/cmd/cmount/mount_test.go
index f57119410..f652c69ed 100644
--- a/cmd/cmount/mount_test.go
+++ b/cmd/cmount/mount_test.go
@@ -10,11 +10,17 @@
package cmount
import (
+ "runtime"
"testing"
+ "github.com/rclone/rclone/fstest/testy"
"github.com/rclone/rclone/vfs/vfstest"
)
func TestMount(t *testing.T) {
+ // Disable tests under macOS and the CI since they are locking up
+ if runtime.GOOS == "darwin" {
+ testy.SkipUnreliable(t)
+ }
vfstest.RunTests(t, false, mount)
}
diff --git a/cmd/mountlib/rc_test.go b/cmd/mountlib/rc_test.go
index 203269901..030a89a5a 100644
--- a/cmd/mountlib/rc_test.go
+++ b/cmd/mountlib/rc_test.go
@@ -16,11 +16,16 @@ import (
"github.com/rclone/rclone/cmd/mountlib"
"github.com/rclone/rclone/fs/config/configfile"
"github.com/rclone/rclone/fs/rc"
+ "github.com/rclone/rclone/fstest/testy"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestRc(t *testing.T) {
+ // Disable tests under macOS and the CI since they are locking up
+ if runtime.GOOS == "darwin" {
+ testy.SkipUnreliable(t)
+ }
ctx := context.Background()
configfile.Install()
mount := rc.Calls.Get("mount/mount")
diff --git a/cmd/serve/docker/docker_test.go b/cmd/serve/docker/docker_test.go
index 3c4564041..9e7ae1da9 100644
--- a/cmd/serve/docker/docker_test.go
+++ b/cmd/serve/docker/docker_test.go
@@ -23,6 +23,7 @@ import (
"github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/config"
"github.com/rclone/rclone/fstest"
+ "github.com/rclone/rclone/fstest/testy"
"github.com/rclone/rclone/lib/file"
"github.com/stretchr/testify/assert"
@@ -303,6 +304,10 @@ func (a *APIClient) request(path string, in, out interface{}, wantErr bool) {
}
func testMountAPI(t *testing.T, sockAddr string) {
+ // Disable tests under macOS and the CI since they are locking up
+ if runtime.GOOS == "darwin" {
+ testy.SkipUnreliable(t)
+ }
if _, mountFn := mountlib.ResolveMountMethod(""); mountFn == nil {
t.Skip("Test requires working mount command")
}