kunit: tool: drop mostly unused KunitResult.result field
authorDaniel Latypov <dlatypov@google.com>
Tue, 18 Jan 2022 19:09:18 +0000 (11:09 -0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 31 Jan 2022 18:55:18 +0000 (11:55 -0700)
commit95dcbc55fe4ffe262795bea02a42695c85a22dc4
tree022eeb0039ccd7a82fe456abdd856cbc356c037f
parent6125a5c70acddd9fc1fb7329047a254c74d0173c
kunit: tool: drop mostly unused KunitResult.result field

This field is only used to pass along the parsed Test object from
parse_tests().
Everywhere else the `result` field is ignored.

Instead make parse_tests() explicitly return a KunitResult and Test so
we can retire the `result` field.

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit.py