diff --git a/ssl/test/runner/test_output.go b/ssl/test/runner/test_output.go index 57fbbe6f..f06da6f6 100644 --- a/ssl/test/runner/test_output.go +++ b/ssl/test/runner/test_output.go @@ -32,8 +32,9 @@ type testOutput struct { } type testResult struct { - Actual string `json:"actual"` - Expected string `json:"expected"` + Actual string `json:"actual"` + Expected string `json:"expected"` + IsUnexpected bool `json:"is_unexpected"` } func newTestOutput() *testOutput { @@ -50,7 +51,11 @@ func (t *testOutput) addResult(name, result string) { if _, found := t.Tests[name]; found { panic(name) } - t.Tests[name] = testResult{Actual: result, Expected: "PASS"} + t.Tests[name] = testResult{ + Actual: result, + Expected: "PASS", + IsUnexpected: result != "PASS", + } t.NumFailuresByType[result]++ } diff --git a/util/all_tests.go b/util/all_tests.go index 5927257d..1a0651a2 100644 --- a/util/all_tests.go +++ b/util/all_tests.go @@ -101,8 +101,9 @@ type testOutput struct { } type testResult struct { - Actual string `json:"actual"` - Expected string `json:"expected"` + Actual string `json:"actual"` + Expected string `json:"expected"` + IsUnexpected bool `json:"is_unexpected"` } func newTestOutput() *testOutput { @@ -119,7 +120,11 @@ func (t *testOutput) addResult(name, result string) { if _, found := t.Tests[name]; found { panic(name) } - t.Tests[name] = testResult{Actual: result, Expected: "PASS"} + t.Tests[name] = testResult{ + Actual: result, + Expected: "PASS", + IsUnexpected: result != "PASS", + } t.NumFailuresByType[result]++ }