From ba7fbfa8a7f32b6f3ce2d7107216bc7097388d74 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 15 Jun 2020 21:25:42 +0100 Subject: [PATCH] testy: test utility functions --- fstest/testy/testy.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 fstest/testy/testy.go 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") +}