Skip to content

Commit 54ddf05

Browse files
6543lunny
authored andcommitted
verbose
1 parent 6118e40 commit 54ddf05

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ test\#%:
385385

386386
.PHONY: coverage
387387
coverage:
388-
GO111MODULE=on $(GO) run -mod=vendor build/gocovmerge.go integration.coverage.out $(shell find . -type f -name "coverage.out") > coverage.all
388+
GO111MODULE=on $(GO) run -mod=vendor build/gocovmerge.go integration.coverage.out $(shell find . -type f -name "coverage.out") > coverage.all || cat coverage.out
389389

390390
.PHONY: unit-test-coverage
391391
unit-test-coverage:

build/gocovmerge.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ func main() {
125125
i++
126126
lines = append(lines, scanner.Text())
127127
}
128-
fmt.Println("=== " + file + " ==============================")
129-
fmt.Printf("%s\n", strings.Join(lines, "\n"))
130-
fmt.Println("===============================================")
128+
log.Println("=== " + file + " ==============================")
129+
log.Printf("%s\n", strings.Join(lines, "\n"))
130+
log.Println("===============================================")
131131
// end
132132

133133
log.Fatalf("failed to parse profile '%s': %v", file, err)

0 commit comments

Comments
 (0)