From 635a3e5b2670cad382765d4ec9927f3f5c27a2b4 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 25 Jun 2015 19:51:39 +0100 Subject: [PATCH] cosmetic: remove attempt at pretty shell fragment there is just no way to format this so it looks good everywhere, due to different tab widths. --- Makefile | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 0e4efa86..f69d0969 100644 --- a/Makefile +++ b/Makefile @@ -94,18 +94,19 @@ $(DOCKER_DISTRIB): tests: echo "mode: count" > profile.cov - fail=0 ; \ - for dir in $$(find . -type f -name '*_test.go' | xargs -n1 dirname | sort -u); do \ - go get -t -tags netgo $$dir ; \ - output=$$(mktemp cover.XXXXXXXXXX) ; \ - if ! go test -cpu 4 -tags netgo -covermode=count -coverprofile=$$output $$dir ; then \ - fail=1 ; \ - fi ; \ - if [ -f $$output ]; then \ - tail -n +2 <$$output >>profile.cov; \ - rm $$output; \ - fi \ - done ; \ + fail=0 ; \ + for dir in $$(find . -type f -name '*_test.go' | xargs -n1 dirname | sort -u); do \ + go get -t -tags netgo $$dir ; \ + output=$$(mktemp cover.XXXXXXXXXX) ; \ + if ! go test -cpu 4 -tags netgo \ + -covermode=count -coverprofile=$$output $$dir ; then \ + fail=1 ; \ + fi ; \ + if [ -f $$output ]; then \ + tail -n +2 <$$output >>profile.cov; \ + rm $$output; \ + fi \ + done ; \ exit $$fail go tool cover -html=profile.cov -o=coverage.html