diff --git a/tests/scripts/create-and-setup-gcp-vm.sh b/tests/scripts/create-and-setup-gcp-vm.sh index 2dc455a865..dd97a5e87d 100755 --- a/tests/scripts/create-and-setup-gcp-vm.sh +++ b/tests/scripts/create-and-setup-gcp-vm.sh @@ -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 diff --git a/tests/scripts/create-gke-cluster.sh b/tests/scripts/create-gke-cluster.sh index 21a8cf919c..37effc84bc 100755 --- a/tests/scripts/create-gke-cluster.sh +++ b/tests/scripts/create-gke-cluster.sh @@ -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 diff --git a/tests/scripts/sync-files-to-vm.sh b/tests/scripts/sync-files-to-vm.sh index ceede7f461..5055555ce6 100755 --- a/tests/scripts/sync-files-to-vm.sh +++ b/tests/scripts/sync-files-to-vm.sh @@ -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