Skip to content

Commit

Permalink
Fix SSH keys workaround for kubetest
Browse files Browse the repository at this point in the history
Create the ~/.ssh dir if it doesn't exist, don't assume it always exist.

Backported from knative/test-infra#151
  • Loading branch information
adrcunha authored Oct 10, 2018
1 parent 37c6405 commit 1a785ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1a785ea

Please sign in to comment.