Skip to content

Commit

Permalink
fix $GOPATH handling in cover.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Jan 12, 2015
1 parent 7d13001 commit e325858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/cover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ trap cleanup INT QUIT TERM EXIT
# cmd/cover doesn't support -coverprofile for multiple packages, so run tests in each dir.
# ref. https://github.com/mattn/goveralls/issues/20
for pkg in $(go list ./...); do
tmpprof=$GOPATH/src/$pkg/profile.tmp
tmpprof=$(echo $GOPATH | cut -d: -f1)/src/$pkg/profile.tmp
go test -covermode=count -coverprofile=$tmpprof $pkg
if [ -f $tmpprof ]; then
cat $tmpprof | tail -n +2 >> $prof
Expand Down

0 comments on commit e325858

Please sign in to comment.