SkipTestOnCIUnlessLinuxAMD64 skips the current test if running on CI unless the environment is Linux/AMD64.
(tb testing.TB)
| 45 | |
| 46 | // SkipTestOnCIUnlessLinuxAMD64 skips the current test if running on CI unless the environment is Linux/AMD64. |
| 47 | func SkipTestOnCIUnlessLinuxAMD64(tb testing.TB) { |
| 48 | tb.Helper() |
| 49 | |
| 50 | if os.Getenv("CI") != "" && runtime.GOOS+"/"+runtime.GOARCH != "linux/amd64" { |
| 51 | tb.Skip("test not supported in this environment.") |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | // ShouldReduceTestComplexity returns true if test complexity should be reduced on the current machine. |
| 56 | func ShouldReduceTestComplexity() bool { |