Only use coverage profiles from test runs to create combined coverage profile.

- Prevent issue where the combined coverage profile is combined with itself
This commit is contained in:
Dale Hui 2018-01-19 17:41:37 -08:00
parent 395391525b
commit 50d049d5f5
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ test:
@mkdir .coverage
make test-with-flags TEST_FLAGS='-v -race -covermode atomic -coverprofile .coverage/_$$(RAND).txt -bench=. -benchmem -timeout 20m'
@echo 'mode: atomic' > .coverage/combined.txt
@cat .coverage/*.txt | grep -v 'mode: atomic' >> .coverage/combined.txt
@cat .coverage/_*.txt | grep -v 'mode: atomic' >> .coverage/combined.txt
test-with-flags: