fix(ci): tweak fragile tests

This commit is contained in:
Łukasz Mierzwa
2021-03-09 17:34:26 +00:00
committed by Łukasz Mierzwa
parent 2883de82df
commit 01629d9788
12 changed files with 26 additions and 40 deletions

View File

@@ -17,7 +17,7 @@ I=0
for d in $PKGS; do
I=$((I+1))
COVFILE="profile.test.${I}"
(go test -coverprofile="${COVFILE}" -coverpkg="$COVERPKG" $d 2>&1 || exit 2) \
(go test -count=1 -coverprofile="${COVFILE}" -coverpkg="$COVERPKG" $d 2>&1 || exit 2) \
| grep -v 'warning: no packages being tested depend on matches for pattern' \
| sed s/'of statements in .*'/''/g
done