lookupHelm ensures that Helm is available in $PATH and returns the path to the Helm executable.
(t testing.TB)
| 249 | // lookupHelm ensures that Helm is available in $PATH and returns the path to the |
| 250 | // Helm executable. |
| 251 | func lookupHelm(t testing.TB) string { |
| 252 | helmPath, err := exec.LookPath("helm") |
| 253 | if err != nil { |
| 254 | t.Fatalf("helm not found in $PATH: %v", err) |
| 255 | return "" |
| 256 | } |
| 257 | t.Logf("Using helm at %q", helmPath) |
| 258 | return helmPath |
| 259 | } |
| 260 | |
| 261 | func TestMain(m *testing.M) { |
| 262 | flag.Parse() |
no test coverage detected