mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +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/...
|
||||
|
||||
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\]"
|
||||
|
||||
push:
|
||||
|
|
Loading…
Reference in a new issue