diff options
author | Daniel Latypov <dlatypov@google.com> | 2022-01-18 11:09:19 -0800 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2022-04-04 14:25:37 -0600 |
commit | 00f75043e46d5bd2bba87b3fada6c1090b61bd40 (patch) | |
tree | fca7c3c05321453d6cfbc7b38873eb5300fb7f56 /tools/testing/kunit/kunit_tool_test.py | |
parent | 3123109284176b1532874591f7c81f3837bbdc17 (diff) |
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>
Diffstat (limited to 'tools/testing/kunit/kunit_tool_test.py')
-rwxr-xr-x | tools/testing/kunit/kunit_tool_test.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/kunit/kunit_tool_test.py b/tools/testing/kunit/kunit_tool_test.py index 352369dffbd9..f7cbc248a405 100755 --- a/tools/testing/kunit/kunit_tool_test.py +++ b/tools/testing/kunit/kunit_tool_test.py @@ -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): |