This commit is contained in:
Hongchao Deng
2020-10-16 15:24:59 -07:00
parent 0e83ff303c
commit 8f4d9b37d2
Regular → Executable
+2 -2
View File
@@ -6,8 +6,8 @@ echo "" > coverage.txt
for d in $(go list ./pkg/... ./cmd/...); do
go test -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
cat profile.out >> coverage.txt
rm profile.out
fi
done