Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 34a2515

Browse files
committed
test: set -kubectl-path for tests
Few of VolumeMode tests are using host kubectl, hence pass the right kubectl-path.
1 parent 3e4b7be commit 34a2515

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test.make

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,13 @@ space:= $(empty) $(empty)
106106
# running to debug test failures, it doesn't stop it.
107107
# Use count=1 to avoid test results caching, does not make sense for e2e test.
108108
.PHONY: test_e2e
109+
KUBECTL="$(PWD)/_work/$(CLUSTER)/ssh.0 kubectl"
109110
RUN_E2E = KUBECONFIG=`pwd`/_work/$(CLUSTER)/kube.config \
110111
REPO_ROOT=`pwd` \
111112
CLUSTER=$(CLUSTER) \
112113
TEST_DEPLOYMENTMODE=$(shell source test/test-config.sh; echo $$TEST_DEPLOYMENTMODE) \
113114
TEST_DEVICEMODE=$(shell source test/test-config.sh; echo $$TEST_DEVICEMODE) \
114-
go test -count=1 -timeout 0 -v ./test/e2e -ginkgo.skip='$(subst $(space),|,$(TEST_E22_SKIP))'
115+
go test -count=1 -timeout 0 -v ./test/e2e -ginkgo.skip='$(subst $(space),|,$(TEST_E22_SKIP))' -kubectl-path=$(KUBECTL)
115116
test_e2e: start
116117
$(RUN_E2E)
117118

0 commit comments

Comments
 (0)