Merge pull request #2534 from diazjf/add-specific

Set Focus for E2E Tests
This commit is contained in:
k8s-ci-robot 2018-05-17 09:46:52 -07:00 committed by GitHub
commit a5c90633ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,7 @@ GOOS?=linux
DOCKER?=docker DOCKER?=docker
SED_I?=sed -i SED_I?=sed -i
GOHOSTOS ?= $(shell go env GOHOSTOS) GOHOSTOS ?= $(shell go env GOHOSTOS)
FOCUS?=.*
ifeq ($(GOHOSTOS),darwin) ifeq ($(GOHOSTOS),darwin)
SED_I=sed -i '' SED_I=sed -i ''
@ -157,7 +158,7 @@ lua-test:
e2e-test: e2e-test:
@ginkgo version || go get -u github.com/onsi/ginkgo/ginkgo @ginkgo version || go get -u github.com/onsi/ginkgo/ginkgo
@ginkgo build ./test/e2e @ginkgo build ./test/e2e
@KUBECONFIG=${HOME}/.kube/config ginkgo -randomizeSuites -randomizeAllSpecs -flakeAttempts=2 -p -trace -nodes=2 ./test/e2e/e2e.test @KUBECONFIG=${HOME}/.kube/config ginkgo -randomizeSuites -randomizeAllSpecs -flakeAttempts=2 --focus=$(FOCUS) -p -trace -nodes=2 ./test/e2e/e2e.test
.PHONY: cover .PHONY: cover
cover: cover: