github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/fstest/testy/testy.go (about) 1 // Package testy contains test utilities for rclone 2 package testy 3 4 import ( 5 "os" 6 "testing" 7 ) 8 9 // CI returns true if we are running on the CI server 10 func CI() bool { 11 return os.Getenv("CI") != "" 12 } 13 14 // SkipUnreliable skips this test if running on CI 15 func SkipUnreliable(t *testing.T) { 16 if !CI() { 17 return 18 } 19 t.Skip("Skipping Unreliable Test on CI") 20 }