testy: test utility functions

This commit is contained in:
Nick Craig-Wood 2020-06-15 21:25:42 +01:00
parent dfc7393e9c
commit 07f7854a25

15
fstest/testy/testy.go Normal file
View File

@ -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")
}