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

testy: test utility functions

Nick Craig-Woodba7fbfa8a7f3
diff --git a/fstest/testy/testy.go b/fstest/testy/testy.go
new file mode 100644
index 000000000..ca2d4ebe8
--- /dev/null
+++ b/fstest/testy/testy.go
@@ -0,0 +1,15 @@
+// Package testy contains test utilities for rclone
+package testy
+
+import (
+ "os"
+ "testing"
+)
+
+// SkipUnreliable skips this test if running on CI
+func SkipUnreliable(t *testing.T) {
+ if os.Getenv("CI") == "" {
+ return
+ }
+ t.Skip("Skipping Unreliable Test on CI")
+}