Skip to content

Commit

Permalink
add \'
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin8105 committed May 30, 2024
1 parent 9963ca3 commit 995b139
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ export PKGS=$(go list -e ./... | grep -v testdata | grep -v examples | grep -v t
echo "PKGS : $PKGS"

# Initialize
echo "" > coverage.txt
touch ./coverage.tmp

# Run tests
echo 'mode: atomic' > coverage.txt
echo $PKGS | xargs -n100 -I{} sh -c 'go test -covermode=atomic -coverprofile=coverage.tmp -coverpkg $(go list ./... | grep -v /vendor | tr "\n" ",") {} && tail -n +2 coverage.tmp >> coverage.txt || exit 255' && rm coverage.tmp
echo "$PKGS" | xargs -n100 -I{} sh -c 'go test -covermode=atomic -coverprofile=coverage.tmp -coverpkg $(go list ./... | grep -v /vendor | tr "\n" ",") {} && tail -n +2 coverage.tmp >> coverage.txt || exit 255' && rm coverage.tmp

# Finilize
echo "End of coverage"

0 comments on commit 995b139

Please sign in to comment.