From 22bd34e63f54bbb66e48f60435ea3818e930d99f Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 8 Jan 2017 22:32:33 +0100 Subject: [PATCH] exclude vendor folder in coverage --- testing/coverage/coverall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/coverage/coverall b/testing/coverage/coverall index 3ea57a277..e6e85800e 100755 --- a/testing/coverage/coverall +++ b/testing/coverage/coverall @@ -41,7 +41,7 @@ for OUT_FILE in $(find ${V2RAY_COV} -name "*.out"); do done COV_SORTED=${V2RAY_COV}/coverallsorted.out -cat ${COVERAGE_FILE} | sort -t: -k1 | grep -vw "testing" | grep -v ".pb.go" > ${COV_SORTED} +cat ${COVERAGE_FILE} | sort -t: -k1 | grep -vw "testing" | grep -v ".pb.go" | grep -vw "vendor" > ${COV_SORTED} echo "mode: set" | cat - ${COV_SORTED} > ${COVERAGE_FILE} if [ "$FAIL" -eq 0 ]; then