]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: tool: make --json handling a bit clearer
authorDaniel Latypov <dlatypov@google.com>
Tue, 18 Jan 2022 19:09:19 +0000 (11:09 -0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 4 Apr 2022 20:25:37 +0000 (14:25 -0600)
commitea4229182200dd59853c746e364cc3284704db83
treefca7c3c05321453d6cfbc7b38873eb5300fb7f56
parent6d94017b7b59bab528be97be158d0d602982e3a6
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>
tools/testing/kunit/kunit.py
tools/testing/kunit/kunit_json.py
tools/testing/kunit/kunit_tool_test.py