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 {