Skip to content

Commit

Permalink
Fix test failing from minikube not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
linkous8 committed Apr 8, 2024
1 parent 4fd323c commit f137fd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,9 @@ async def minikube(request, subprocess, kubeconfig: pathlib.Path) -> str:
# https://github.com/kubernetes/minikube/issues/13621
pytest.xfail("Minikube failed start (CA)")

if exit_code == 127 and any("minikube: not found" in line for line in stderr):
pytest.xfail("Minikube not installed")

raise RuntimeError(
f"failed running minikube: exited with status code {exit_code}: {stderr}"
)
Expand Down

0 comments on commit f137fd4

Please sign in to comment.