Commit 24d1166a by Ben Clayton

Regres: Include failure reasons in CI message

Change-Id: I8aed6a72c4b9a2a575e441b846c581a67f82cf9b Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28351Tested-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent f55e0a87
...@@ -1014,10 +1014,17 @@ func compare(old, new *CommitTestResults) string { ...@@ -1014,10 +1014,17 @@ func compare(old, new *CommitTestResults) string {
} else { } else {
sb.WriteString(fmt.Sprintf(" - [%s]", n.Status)) sb.WriteString(fmt.Sprintf(" - [%s]", n.Status))
} }
sb.WriteString("\n")
for _, line := range strings.Split(n.Err, "\n") {
if line != "" {
sb.WriteString(fmt.Sprintf(" %v\n", line))
}
} }
} else {
sb.WriteString("\n") sb.WriteString("\n")
} }
} }
}
sb.WriteString(fmt.Sprintf(" Total tests: %d\n", totalTests)) sb.WriteString(fmt.Sprintf(" Total tests: %d\n", totalTests))
for _, s := range []struct { for _, s := range []struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment