diff options
author | David Benjamin <davidben@chromium.org> | 2015-04-04 10:57:26 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-04-06 21:13:27 +0300 |
commit | 7ead6055991c8ba341651d51d4e20acc8b0ac16a (patch) | |
tree | b2c869ee3d2cdd460013dfea2aa4a0d4bf18a5ce /util | |
parent | 6c2563e241bc077f4bcd500fadff4ae420abc297 (diff) |
Add the is_unexpected key to the test output.
If the key is missing, it seems the failure is assumed to be expected.
BUG=473924
Change-Id: I62edd9110fa74bee5e6425fd6786badf5398728c
Reviewed-on: https://boringssl-review.googlesource.com/4231
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/all_tests.go | 11 |
1 files changed, 8 insertions, 3 deletions
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]++ } |