Skip to content

Commit e801ca3

Browse files
authored
Merge pull request #909 from ikedam/feature/testsSholdNotFailFast
Tests should not fail fast
2 parents 9d98a82 + baec2a5 commit e801ca3

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

test.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@
33
set -e
44
echo "" > coverage.txt
55

6+
failed=0
7+
68
for d in $(go list ./... | grep -v vendor); do
7-
go test -race -coverprofile=profile.out -covermode=atomic $d
9+
go test -race -coverprofile=profile.out -covermode=atomic $d && true
10+
rc=$?
11+
if [ $rc != 0 ]; then
12+
failed=$rc
13+
fi
814
if [ -f profile.out ]; then
915
cat profile.out >> coverage.txt
1016
rm profile.out
1117
fi
1218
done
19+
20+
exit ${failed}

0 commit comments

Comments
 (0)