From 1a785ea8cef6f86c68a5ccd4e171de0c4d58e72f Mon Sep 17 00:00:00 2001 From: Adriano Cunha <35786489+adrcunha@users.noreply.github.com> Date: Wed, 10 Oct 2018 12:28:25 -0700 Subject: [PATCH] Fix SSH keys workaround for kubetest Create the ~/.ssh dir if it doesn't exist, don't assume it always exist. Backported from https://github.com/knative/test-infra/pull/151 --- test/e2e-tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e-tests.sh b/test/e2e-tests.sh index 27c51c88ae67..92d6ff3c0e25 100755 --- a/test/e2e-tests.sh +++ b/test/e2e-tests.sh @@ -192,6 +192,7 @@ if (( ! RUN_TESTS )); then fi # SSH keys are not used, but kubetest checks for their existence. # Touch them so if they don't exist, empty files are create to satisfy the check. + mkdir -p $HOME/.ssh touch $HOME/.ssh/google_compute_engine.pub touch $HOME/.ssh/google_compute_engine # Clear user and cluster variables, so they'll be set to the test cluster.