parser/gotest: Fix output trimming

This commit is contained in:
Joël Stemmer 2019-10-06 19:13:15 +01:00
parent 1563e51b7c
commit 08a21eb096

View File

@ -126,7 +126,9 @@ func (p *parser) benchmark(name, iterations, nsPerOp, mbPerSec, bytesPerOp, allo
}
func (p *parser) output(line string) {
p.add(gtr.Event{Type: "output", Data: strings.TrimPrefix(line, "\t")})
line = strings.TrimPrefix(line, " ")
line = strings.TrimPrefix(line, "\t")
p.add(gtr.Event{Type: "output", Data: line})
}
func parseSeconds(s string) time.Duration {