fail docker tests immediately of docker doesn't start up

pull/10300/head
Sharif Elgamal 2021-01-28 09:46:47 -08:00
parent 88902ee698
commit a8bae1311e
2 changed files with 6 additions and 0 deletions

View File

@ -31,3 +31,4 @@ while($attempt -ne 0) {
Get-Process "*Docker Desktop*" | Stop-Process
$attempt -= 1
}
exit 1

View File

@ -19,6 +19,11 @@ gsutil.cmd -m cp -r gs://minikube-builds/$env:MINIKUBE_LOCATION/testdata .
gsutil.cmd -m cp -r gs://minikube-builds/$env:MINIKUBE_LOCATION/setup_docker_desktop_windows.ps1 out/
./out/setup_docker_desktop_windows.ps1
If ($lastexitcode -gt 0) {
echo "Docker failed to start, exiting."
Exit $lastexitcode
}
./out/minikube-windows-amd64.exe delete --all