We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d98a82 + baec2a5 commit e801ca3Copy full SHA for e801ca3
1 file changed
test.sh
@@ -3,10 +3,18 @@
3
set -e
4
echo "" > coverage.txt
5
6
+failed=0
7
+
8
for d in $(go list ./... | grep -v vendor); do
- 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
14
if [ -f profile.out ]; then
15
cat profile.out >> coverage.txt
16
rm profile.out
17
fi
18
done
19
20
+exit ${failed}
0 commit comments