Skip to content

Commit 200ac0c

Browse files
committed
Fix coverage processing
Signed-off-by: Adrian Reber <[email protected]>
1 parent 5b3b8ad commit 200ac0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ coverage: $(COVERAGE_BINARIES) $(TEST_PAYLOAD)
7575
test/phaul/phaul.coverage -test.coverprofile=coverprofile.integration.$$RANDOM -test.outputdir=${COVERAGE_PATH} COVERAGE $$PID; \
7676
pkill -9 piggie; \
7777
}
78+
echo "mode: set" > .coverage/coverage.out && cat .coverage/coverprofile* | \
79+
grep -v mode: | sort -r | awk '{if($$1 != last) {print $$0;last=$$1}}' >> .coverage/coverage.out
7880

7981
clean:
8082
@rm -f $(TEST_BINARIES) $(COVERAGE_BINARIES) codecov
@@ -100,6 +102,6 @@ vendor:
100102
codecov:
101103
curl -Os https://uploader.codecov.io/latest/linux/codecov
102104
chmod +x codecov
103-
./codecov -f '.coverage/*'
105+
./codecov -f '.coverage/coverage.out'
104106

105107
.PHONY: build test phaul-test test-bin clean lint vendor coverage codecov

0 commit comments

Comments
 (0)