Skip to content

Commit 9ce769a

Browse files
committed
Simplify test.sh script
1 parent dfce1fc commit 9ce769a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ci/test.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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

3836
go tool cover -html=ci/out/coverage.prof -o=ci/out/coverage.html
3937
if [[ ${CI-} ]]; then

0 commit comments

Comments
 (0)