lookupHelm ensures that Helm is available in $PATH and returns the path to the Helm executable.
(t testing.TB)
| 303 | // lookupHelm ensures that Helm is available in $PATH and returns the path to the |
| 304 | // Helm executable. |
| 305 | func lookupHelm(t testing.TB) string { |
| 306 | helmPath, err := exec.LookPath("helm") |
| 307 | if err != nil { |
| 308 | t.Fatalf("helm not found in $PATH: %v", err) |
| 309 | return "" |
| 310 | } |
| 311 | t.Logf("Using helm at %q", helmPath) |
| 312 | return helmPath |
| 313 | } |
| 314 | |
| 315 | func TestMain(m *testing.M) { |
| 316 | flag.Parse() |
no test coverage detected