File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,10 @@ mkdir -p ci/out/websocket
2828" ${argv[@]} "
2929
3030# Removes coverage of generated/test related files.
31- grep -v _stringer.go < ci/out/coverage.prof > ci/out/coverage2.prof
32- mv ci/out/coverage2.prof ci/out/coverage.prof
33- grep -v wsjstest < ci/out/coverage.prof > ci/out/coverage2.prof
34- mv ci/out/coverage2.prof ci/out/coverage.prof
35- grep -v wsecho < ci/out/coverage.prof > ci/out/coverage2.prof
36- mv ci/out/coverage2.prof ci/out/coverage.prof
31+ sed -i.bak ' /_stringer.go/d' ci/out/coverage.prof
32+ sed -i.bak ' /wsjstest/d' ci/out/coverage.prof
33+ sed -i.bak ' /wsecho/d' ci/out/coverage.prof
34+ rm coverage.prof.bak
3735
3836go tool cover -html=ci/out/coverage.prof -o=ci/out/coverage.html
3937if [[ ${CI-} ]]; then
You can’t perform that action at this time.
0 commit comments