Skip to content

Commit c5036a0

Browse files
authored
Merge pull request #19844 from k8s-infra-cherrypick-robot/cherry-pick-19836-to-release-3.6
[release-3.6] make: upload partial coverage reports
2 parents 744b3ca + b9d47ef commit c5036a0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ test-coverage:
6767
COVERDIR=covdir PASSES="build cov" ./scripts/test.sh $(GO_TEST_FLAGS)
6868

6969
.PHONY: upload-coverage-report
70-
upload-coverage-report: test-coverage
71-
COVERDIR=covdir ./scripts/codecov_upload.sh
70+
upload-coverage-report:
71+
return_code=0; \
72+
$(MAKE) test-coverage || return_code=$$?; \
73+
COVERDIR=covdir ./scripts/codecov_upload.sh; \
74+
exit $$return_code
7275

7376
.PHONY: fuzz
7477
fuzz:

0 commit comments

Comments
 (0)