kunit: tool: unit tests all check parser errors, standardize formatting a bit
authorDaniel Latypov <dlatypov@google.com>
Thu, 3 Nov 2022 17:47:39 +0000 (10:47 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 12 Dec 2022 21:13:47 +0000 (14:13 -0700)
commit05d9d2c3ee1e4b587f71455f6d3d1493289204ff
tree76d33727ee4de99bcd8ed61a20ef4cbc4631ded1
parentf473dd9488d910aab109e8c6a2e4181125ca322a
kunit: tool: unit tests all check parser errors, standardize formatting a bit

Let's verify that the parser isn't reporting any errors for valid
inputs.

This change also
* does result.status checking on one line
* makes sure we consistently do it outside of the `with` block

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit_tool_test.py