diff --git a/modules/mesh-build-go/cmd/mesh-build-go/levels.go b/modules/mesh-build-go/cmd/mesh-build-go/levels.go index 27d38434..ea5bc596 100644 --- a/modules/mesh-build-go/cmd/mesh-build-go/levels.go +++ b/modules/mesh-build-go/cmd/mesh-build-go/levels.go @@ -192,7 +192,7 @@ func (r *reader) event(ev event) { case "output": // go test's own summary of a package ("PASS", "FAIL", "ok ", "FAIL ") is never a failure's // words: a "PASS" before a "FAIL " says only that the tests passed and the program failed after them. - switch l := strings.TrimSpace(ev.Output); { + switch l := strings.TrimRight(ev.Output, "\r\n"); { case l == "PASS": r.passed[ev.Package] = true case summaryLine(l): @@ -275,22 +275,24 @@ func clip(lines []string, cause string) string { return strings.Join(kept, "\n") } -// summaryLine says a line is go test's summary of a package: "PASS", "FAIL", "ok