From bcf1a4c761c209302cff770c23ab75869a2b6df1 Mon Sep 17 00:00:00 2001 From: Miguel Molina Date: Tue, 24 Jan 2017 15:38:22 +0100 Subject: [PATCH] Fix makefile --- Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index e077f4b..ece9db0 100644 --- a/Makefile +++ b/Makefile @@ -4,15 +4,11 @@ COVERAGE_MODE := atomic test: @echo "mode: $(COVERAGE_MODE)" > $(COVERAGE_REPORT); \ - go test . -coverprofile=$(COVERAGE_PROFILE) -covermode=${COVERAGE_MODE); \ - if [ $$? != 0 ]; then \ - exit 2; \ - fi; \ if [ -f $(COVERAGE_PROFILE) ]; then \ tail -n +2 $(COVERAGE_PROFILE) >> $(COVERAGE_REPORT); \ rm $(COVERAGE_PROFILE); \ fi; \ - for dir in `find ./generator -name "*.go" | grep -o '.*/' | sort -u`; do \ + for dir in `find . -name "*.go" | grep -o '.*/' | sort -u`; do \ go test $$dir -coverprofile=$(COVERAGE_PROFILE) -covermode=$(COVERAGE_MODE); \ if [ $$? != 0 ]; then \ exit 2; \