diff --git a/Makefile b/Makefile index 2a65e73622..44a011c093 100644 --- a/Makefile +++ b/Makefile @@ -10,17 +10,6 @@ else GOBIN=$(shell go env GOBIN) endif -# Setting GREP allows macos users to install GNU grep and use the latter -# instead of the default BSD grep. -ifeq ($(shell command -v ggrep 2>/dev/null),) - GREP ?= $(shell command -v grep) -else - GREP ?= $(shell command -v ggrep) -endif -ifeq ($(shell ${GREP} --version 2>&1 | grep -q GNU; echo $$?),1) - $(error !!! GNU grep is required. If on OS X, use 'brew install grep'.) -endif - # Setting SHELL to bash allows bash commands to be executed by recipes. # This is a requirement for 'setup-envtest.sh' in the test target. # Options are set to exit when a recipe line exits non-zero or a piped command fails. @@ -93,7 +82,7 @@ test-integrationv2: envtest .PHONY: testv2 testv2: - go test $(shell go list ./pkg/... | $(GREP) -E '.*\.v2') -coverprofile cover.out + go test ./pkg/controller.v2/... ./pkg/runtime.v2/... ./pkg/webhook.v2/... ./pkg/util.v2/... -coverprofile cover.out envtest: ifndef HAS_SETUP_ENVTEST