mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-15 21:08:23 +00:00
Makefile: require KUBECONFIG to be specified for e2e-test target
This Patch adds a check on make target e2e-test, to check if the KUBECONFIG env var is set before running the test suite. if not pressent return a valid error message. Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
This commit is contained in:
parent
a27a69e452
commit
30e64468de
1 changed files with 1 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -113,6 +113,7 @@ test:
|
||||||
$(GO_CMD) test ./cmd/... ./pkg/...
|
$(GO_CMD) test ./cmd/... ./pkg/...
|
||||||
|
|
||||||
e2e-test:
|
e2e-test:
|
||||||
|
@if [ -z ${KUBECONFIG} ]; then echo "[ERR] KUBECONFIG missing, must be defined"; exit 1; fi
|
||||||
$(GO_CMD) test -v ./test/e2e/ -args -nfd.repo=$(IMAGE_REPO) -nfd.tag=$(IMAGE_TAG_NAME) -kubeconfig=$(KUBECONFIG) -nfd.e2e-config=$(E2E_TEST_CONFIG) -ginkgo.focus="\[NFD\]"
|
$(GO_CMD) test -v ./test/e2e/ -args -nfd.repo=$(IMAGE_REPO) -nfd.tag=$(IMAGE_TAG_NAME) -kubeconfig=$(KUBECONFIG) -nfd.e2e-config=$(E2E_TEST_CONFIG) -ginkgo.focus="\[NFD\]"
|
||||||
|
|
||||||
push:
|
push:
|
||||||
|
|
Loading…
Add table
Reference in a new issue