From 8bf19eef93a9a16eb07333518094338bb81b32eb Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Tue, 15 Mar 2022 09:41:44 -0700 Subject: [PATCH] Run tests for AWS (#2483) --- Makefile | 4 ++-- hack/test-cover.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 18a97c8ffb..6d8902d91e 100644 --- a/Makefile +++ b/Makefile @@ -34,13 +34,13 @@ lint: ## Run linter .PHONY: test test: ## Run tests - go test -shuffle=on -race ./... + go test -tags=aws -shuffle=on -race ./... cover: ## Generate coverage report @./hack/test-cover.sh cover-html: ## Generate and show coverage report in HTML format - go test -shuffle=on -race ./... -count=1 -cover -covermode=atomic -coverprofile=coverage.out + go test -tags=aws -shuffle=on -race ./... -count=1 -cover -covermode=atomic -coverprofile=coverage.out go tool cover -html coverage.out .PHONY: verify-codegen diff --git a/hack/test-cover.sh b/hack/test-cover.sh index 85ea09993e..86272ef237 100755 --- a/hack/test-cover.sh +++ b/hack/test-cover.sh @@ -4,7 +4,7 @@ set -e echo "" >coverage.txt for d in $(go list ./... | grep -v vendor); do - go test -shuffle=on -race -coverprofile=profile.out -covermode=atomic $d + go test -tags=aws -shuffle=on -race -coverprofile=profile.out -covermode=atomic $d if [ -f profile.out ]; then cat profile.out >>coverage.txt rm profile.out