OSDN Git Service

kunit: tool: delete kunit_parser.TestResult type
authorDaniel Latypov <dlatypov@google.com>
Tue, 14 Dec 2021 19:26:12 +0000 (11:26 -0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 15 Dec 2021 18:50:56 +0000 (11:50 -0700)
commite0cc8c052a3992b01f51df1d51eaae49e5b2710f
tree57788e7d607a5f927c120633fc96ae35c22e5aa8
parentdb1679813f9f86b05bbbc6f05f4cdbe481d59352
kunit: tool: delete kunit_parser.TestResult type

The `log` field is unused, and the `status` field is accessible via
`test.status`.

So it's simpler to just return the main `Test` object directly.

And since we're no longer returning a namedtuple, which has no type
annotations, this hopefully means typecheckers are better equipped to
find any errors.

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
tools/testing/kunit/kunit_json.py
tools/testing/kunit/kunit_parser.py
tools/testing/kunit/kunit_tool_test.py