diff --git a/goclean.sh b/goclean.sh index f845a01f..91833320 100755 --- a/goclean.sh +++ b/goclean.sh @@ -13,12 +13,13 @@ test -z "$(gofmt -l -w . | tee /dev/stderr)" test -z "$(goimports -l -w . | tee /dev/stderr)" test -z "$(golint . | tee /dev/stderr)" go vet ./... +env GORACE="halt_on_error=1" go test -v -race ./... # Run test coverage on each subdirectories and merge the coverage profile. echo "mode: count" > profile.cov -# Standard go tooling behavior is to ignore dirs with leading underscors +# Standard go tooling behavior is to ignore dirs with leading underscores. for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_*' -type d); do if ls $dir/*.go &> /dev/null; then