Skip to content

Commit

Permalink
Fix problems in tests scripts (#2320)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored Jul 31, 2024
1 parent f586309 commit c73558e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/scripts/create-and-setup-gcp-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ gcloud compute ssh --zone ${GKE_CLUSTER_ZONE} --project=${GKE_PROJECT} username@
cd nginx-gateway-fabric/tests
git fetch -pP --all
git checkout ${NGF_BRANCH}
git pull
gcloud container clusters get-credentials ${GKE_CLUSTER_NAME} --zone ${GKE_CLUSTER_ZONE} --project=${GKE_PROJECT} --quiet
EOF" -- -t
2 changes: 1 addition & 1 deletion tests/scripts/create-gke-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ gcloud container clusters create ${GKE_CLUSTER_NAME} \
# Add current IP to GKE master control node access, if this script is not invoked during a CI run.
if [ "${IS_CI}" = "false" ]; then
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
./${SCRIPT_DIR}/add-local-ip-auth-networks.sh
${SCRIPT_DIR}/add-local-ip-auth-networks.sh
fi
2 changes: 1 addition & 1 deletion tests/scripts/sync-files-to-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source scripts/vars.env

NGF_DIR=$(dirname "$CUR")
NGF_DIR=$(dirname "$PWD")

gcloud compute config-ssh --ssh-config-file ngf-gcp.ssh > /dev/null

Expand Down

0 comments on commit c73558e

Please sign in to comment.