SkipIfNotExperimentalDaemon returns whether the test docker daemon is in experimental mode
(t *testing.T)
| 73 | |
| 74 | // SkipIfNotExperimentalDaemon returns whether the test docker daemon is in experimental mode |
| 75 | func SkipIfNotExperimentalDaemon(t *testing.T) { |
| 76 | t.Helper() |
| 77 | result := icmd.RunCmd(icmd.Command("docker", "info", "--format", "{{.ExperimentalBuild}}")) |
| 78 | result.Assert(t, icmd.Expected{Err: icmd.None}) |
| 79 | experimentalBuild := strings.TrimSpace(result.Stdout()) == "true" |
| 80 | skip.If(t, !experimentalBuild, "running against a non-experimental daemon") |
| 81 | } |
| 82 | |
| 83 | // SkipIfDaemonNotLinux skips the test unless the running docker daemon is on Linux |
| 84 | func SkipIfDaemonNotLinux(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…