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

gitannex: skip end to end tests under the race detector

Nick Craig-Woodc9cd065458e8
diff --git a/cmd/gitannex/e2e_test.go b/cmd/gitannex/e2e_test.go
index c6d801ffb..3afff7391 100644
--- a/cmd/gitannex/e2e_test.go
+++ b/cmd/gitannex/e2e_test.go
@@ -18,6 +18,7 @@ import (
"github.com/rclone/rclone/fstest"
"github.com/rclone/rclone/fstest/testy"
"github.com/rclone/rclone/lib/buildinfo"
+ "github.com/rclone/rclone/lib/israce"
)
// checkRcloneBinaryVersion runs whichever rclone is on the PATH and checks
@@ -194,6 +195,13 @@ func skipE2eTestIfNecessary(t *testing.T) {
t.Skip("Skipping on macOS CI - tests frequently time out")
}
+ // The code under test runs in a separate rclone subprocess which is not
+ // built with race instrumentation, so running these tests under the race
+ // detector costs time without adding any race coverage.
+ if israce.Enabled {
+ t.Skip("Skipping because the race detector cannot observe the rclone subprocess")
+ }
+
// TODO: Support e2e tests on Windows. Need to evaluate the semantics of the
// HOME and PATH environment variables.
switch runtime.GOOS {