diff options
Diffstat (limited to 'fstest/testy/testy.go')
| -rw-r--r-- | fstest/testy/testy.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fstest/testy/testy.go b/fstest/testy/testy.go new file mode 100644 index 0000000..5b73c01 --- /dev/null +++ b/fstest/testy/testy.go @@ -0,0 +1,20 @@ +// Package testy contains test utilities for rclone +package testy + +import ( + "os" + "testing" +) + +// CI returns true if we are running on the CI server +func CI() bool { + return os.Getenv("CI") != "" +} + +// SkipUnreliable skips this test if running on CI +func SkipUnreliable(t *testing.T) { + if !CI() { + return + } + t.Skip("Skipping Unreliable Test on CI") +} |
