mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-12 16:27:05 +02:00
skip timing-sensitive tests on CircleCI
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.
This commit is contained in:
13
util/zreplcircleci/zreplcircleci.go
Normal file
13
util/zreplcircleci/zreplcircleci.go
Normal file
@ -0,0 +1,13 @@
|
||||
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...))
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user