mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
kunit: tool: make --json handling a bit clearer
Currently kunit_json.get_json_result() will output the JSON-ified test output to json_path, but iff it's not "stdout". Instead, move the responsibility entirely over to the one caller. Signed-off-by: Daniel Latypov <dlatypov@google.com> Reviewed-by: David Gow <davidgow@google.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
committed by
Shuah Khan
parent
3123109284
commit
00f75043e4
@@ -469,8 +469,7 @@ class KUnitJsonTest(unittest.TestCase):
|
||||
json_obj = kunit_json.get_json_result(
|
||||
test=test_result,
|
||||
def_config='kunit_defconfig',
|
||||
build_dir=None,
|
||||
json_path='stdout')
|
||||
build_dir=None)
|
||||
return json.loads(json_obj)
|
||||
|
||||
def test_failed_test_json(self):
|
||||
|
||||
Reference in New Issue
Block a user