Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix coverage testing to work on OS X, where xargs is different. #5160

Merged
merged 1 commit into from
Mar 9, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions hack/test-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ combined_cover_profile="${cover_report_dir}/combined-coverage.out"

# Include all coverage reach data in the combined profile, but exclude the
# 'mode' lines, as there should be only one.
find "${cover_report_dir}" -name "${cover_profile}" |
xargs -r grep -h -v "^mode:" || true
for x in `find "${cover_report_dir}" -name "${cover_profile}"`; do
cat $x | grep -h -v "^mode:" || true
done
} >"${combined_cover_profile}"

coverage_html_file="${cover_report_dir}/combined-coverage.html"
Expand Down