Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

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 11, 2018
1 parent 6793e2b commit b605a77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ if [[ -z $1 ]]; 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 b605a77

Please sign in to comment.