From 9f7f4d033b03ae1b6e7b69c9e3bfb368f06a887d Mon Sep 17 00:00:00 2001 From: Roland Shoemaker Date: Thu, 23 May 2024 10:04:41 -0700 Subject: Add error string to JSON test result output Useful for third-party bogo users. Change-Id: I8f456c714ca689bed8b6a44e4adb5f9103b994c7 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/68747 Commit-Queue: Roland Shoemaker Reviewed-by: David Benjamin Commit-Queue: David Benjamin --- ssl/test/runner/runner.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ssl') diff --git a/ssl/test/runner/runner.go b/ssl/test/runner/runner.go index b08e1bf..37a36fb 100644 --- a/ssl/test/runner/runner.go +++ b/ssl/test/runner/runner.go @@ -20364,19 +20364,19 @@ func statusPrinter(doneChan chan *testresult.Results, statusChan chan statusMsg, if *allowUnimplemented { testOutput.AddSkip(msg.test.name) } else { - testOutput.AddResult(msg.test.name, "SKIP") + testOutput.AddResult(msg.test.name, "SKIP", nil) } } else { fmt.Printf("FAILED (%s)\n%s\n", msg.test.name, msg.err) failed++ - testOutput.AddResult(msg.test.name, "FAIL") + testOutput.AddResult(msg.test.name, "FAIL", msg.err) } } else { if *pipe { // Print each test instead of a status line. fmt.Printf("PASSED (%s)\n", msg.test.name) } - testOutput.AddResult(msg.test.name, "PASS") + testOutput.AddResult(msg.test.name, "PASS", nil) } } -- cgit v1.1