fix tests.sh

This commit is contained in:
Dan Ballard 2021-11-01 09:00:41 -07:00
parent 8874642601
commit 0f1d94d27e
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@ set -e
pwd
GORACE="haltonerror=1"
go test -race ${1} -coverprofile=server.metrics.cover.out -v ./metrics
go test -race ${1} -coverprofile=server.metrics.cover.out -v ./storage
go test -race ${1} -coverprofile=server.metrics.cover.out -v ./
go test -race ${1} -coverprofile=server.storage.cover.out -v ./storage
go test -race ${1} -coverprofile=server.cover.out -v ./
echo "mode: set" > coverage.out && cat *.cover.out | grep -v mode: | sort -r | \
awk '{if($1 != last) {print $0;last=$1}}' >> coverage.out
rm -rf *.cover.out