Skip to content

Commit a3c5707

Browse files
authored
Keep raw testrunner failure lines distinct
1 parent 6cb4d39 commit a3c5707

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/testrunner/log.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,10 @@ func normalizedFailureLines(data string) []string {
374374
func findLastAssertionFailureBlock(lines []string) (string, bool) {
375375
var failLine string
376376
for i, line := range slices.Backward(lines) {
377-
line := strings.TrimSpace(line)
378-
if failLine == "" && strings.HasPrefix(line, goTestFailLinePrefix) {
377+
trimmed := strings.TrimSpace(line)
378+
if failLine == "" && strings.HasPrefix(trimmed, goTestFailLinePrefix) {
379379
// Keep the final Go test failure line because it carries the test duration.
380-
failLine = line
380+
failLine = trimmed
381381
continue
382382
}
383383
if !strings.Contains(line, "Error Trace:") {

0 commit comments

Comments
 (0)