Explorar o código

exclude vendor folder in coverage

Darien Raymond %!s(int64=8) %!d(string=hai) anos
pai
achega
22bd34e63f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      testing/coverage/coverall

+ 1 - 1
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