From 2b7ae7fcd4bbfce6291f5de2f5e8aa7da8a40faf Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Sat, 7 Mar 2015 10:58:28 +0100 Subject: [PATCH] Fix coverage testing to work on OS X, where xargs is different. --- hack/test-go.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hack/test-go.sh b/hack/test-go.sh index 68c44d9dd66..1f65fdaa7ca 100755 --- a/hack/test-go.sh +++ b/hack/test-go.sh @@ -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"