Skip to content

Commit c73558e

Browse files
authored
Fix problems in tests scripts (#2320)
1 parent f586309 commit c73558e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

tests/scripts/create-and-setup-gcp-vm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ gcloud compute ssh --zone ${GKE_CLUSTER_ZONE} --project=${GKE_PROJECT} username@
5858
cd nginx-gateway-fabric/tests
5959
git fetch -pP --all
6060
git checkout ${NGF_BRANCH}
61+
git pull
6162
gcloud container clusters get-credentials ${GKE_CLUSTER_NAME} --zone ${GKE_CLUSTER_ZONE} --project=${GKE_PROJECT} --quiet
6263
EOF" -- -t

tests/scripts/create-gke-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ gcloud container clusters create ${GKE_CLUSTER_NAME} \
3434
# Add current IP to GKE master control node access, if this script is not invoked during a CI run.
3535
if [ "${IS_CI}" = "false" ]; then
3636
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
37-
./${SCRIPT_DIR}/add-local-ip-auth-networks.sh
37+
${SCRIPT_DIR}/add-local-ip-auth-networks.sh
3838
fi

tests/scripts/sync-files-to-vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source scripts/vars.env
44

5-
NGF_DIR=$(dirname "$CUR")
5+
NGF_DIR=$(dirname "$PWD")
66

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

0 commit comments

Comments
 (0)