RequireExecutable skips tests when executable `name` is not present in PATH.
(t testing.TB, name string)
| 663 | |
| 664 | // RequireExecutable skips tests when executable `name` is not present in PATH. |
| 665 | func RequireExecutable(t testing.TB, name string) { |
| 666 | if _, err := exec.LookPath(name); err != nil { |
| 667 | t.Skipf("required executable doesn't exist in PATH: %s", name) |
| 668 | } |
| 669 | } |
| 670 | |
| 671 | const Namespace = "nerdctl-test" |
| 672 |
no outgoing calls
searching dependent graphs…