|
@@ -4,7 +4,7 @@ default: fmt vet errcheck test
|
|
|
test:
|
|
test:
|
|
|
echo "" > coverage.txt
|
|
echo "" > coverage.txt
|
|
|
for d in `go list ./... | grep -v vendor`; do \
|
|
for d in `go list ./... | grep -v vendor`; do \
|
|
|
- go test -v -timeout 60s -race -coverprofile=profile.out -covermode=atomic $$d; \
|
|
|
|
|
|
|
+ go test -v -timeout 60s -race -coverprofile=profile.out -covermode=atomic $$d || exit 1; \
|
|
|
if [ -f profile.out ]; then \
|
|
if [ -f profile.out ]; then \
|
|
|
cat profile.out >> coverage.txt; \
|
|
cat profile.out >> coverage.txt; \
|
|
|
rm profile.out; \
|
|
rm profile.out; \
|