Skip to content

Commit

Permalink
Makefile: Fail correctly on test failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
wrouesnel committed Jun 28, 2017
1 parent 8ce8345 commit abd6a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fmt: tools
test: tools
@mkdir -p $(COVERDIR)
for pkg in $(GO_PKGS) ; do \
go test -v -covermode count -coverprofile=$(COVERDIR)/$(echo $$pkg | tr '/' '-').out $(pkg) ; \
go test -v -covermode count -coverprofile=$(COVERDIR)/$(echo $$pkg | tr '/' '-').out $(pkg) || exit 1 \
done
gocovmerge $(shell find $(COVERDIR) -name '*.out') > cover.out

Expand Down

0 comments on commit abd6a7f

Please sign in to comment.