Skip to content

Commit

Permalink
Only show focused diff on diff test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Jan 24, 2019
1 parent 72e4fae commit fd5c37a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ build: ## Build eksctl

.PHONY: test
test: generate ## Run unit test (and re-generate code under test)
@git diff --exit-code pkg/nodebootstrap/assets.go > /dev/null || (git --no-pager diff; exit 1)
@git diff --exit-code ./pkg/eks/mocks > /dev/null || (git --no-pager diff; exit 1)
@git diff --exit-code pkg/nodebootstrap/assets.go > /dev/null || (git --no-pager diff pkg/nodebootstrap/assets.go; exit 1)
@git diff --exit-code ./pkg/eks/mocks > /dev/null || (git --no-pager diff ./pkg/eks/mocks; exit 1)
@$(MAKE) unit-test
@test -z $(COVERALLS_TOKEN) || $(GOPATH)/bin/goveralls -coverprofile=coverage.out -service=circle-ci
@go test -tags integration ./integration/... -c && rm -f integration.test
Expand Down

0 comments on commit fd5c37a

Please sign in to comment.