Merge pull request #11616 from spowelljr/improveWindowsSetup

Delete `minikube-integration` folder in case last test failed to delete it
pull/11629/head
Medya Ghazizadeh 2021-06-10 15:33:23 -04:00 committed by GitHub
commit 5331cbeb8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
$test_root="$env:HOMEDRIVE$env:HOMEPATH\minikube-integration"
$test_home="$test_root\$env:COMMIT"
$test_home="$env:HOMEDRIVE$env:HOMEPATH\minikube-integration"
$env:KUBECONFIG="$test_home\kubeconfig"
$env:MINIKUBE_HOME="$test_home\.minikube"
# delete in case previous test was unexpectedly ended and teardown wasn't run
rm -r -Force $test_home
mkdir -p $test_home

View File

@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
$test_root="$env:HOMEDRIVE$env:HOMEPATH\minikube-integration"
$test_home="$test_root\$env:COMMIT"
$test_home="$env:HOMEDRIVE$env:HOMEPATH\minikube-integration"
rm -r $test_home
rm -r -Force $test_home