mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 09:54:47 +01:00
c600cc1f60
We had too many spurious test failures in the past. But on a developer machine, the tests don't usually fail because the system isn't loaded as much. So, only disable test on CircleCI.
14 lines
264 B
Go
14 lines
264 B
Go
package zreplcircleci
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func SkipOnCircleCI(t *testing.T, reasonFmt string, args ...interface{}) {
|
|
if os.Getenv("CIRCLECI") != "" {
|
|
t.Skipf("This test is skipped in CircleCI. Reason: %s", fmt.Sprintf(reasonFmt, args...))
|
|
}
|
|
}
|