diff options
author | 2021-11-05 18:30:57 -0700 | |
---|---|---|
committer | 2021-12-13 13:53:30 -0700 | |
commit | 98978490ccf7071442a5cbfaaa1a957a89b0c98b (patch) | |
tree | b0456d2a7555ca2d2308c77e984905acf6a77f11 /scripts/gdb/linux/utils.py | |
parent | kunit: tool: print parsed test results fully incrementally (diff) | |
download | wireguard-linux-98978490ccf7071442a5cbfaaa1a957a89b0c98b.tar.xz wireguard-linux-98978490ccf7071442a5cbfaaa1a957a89b0c98b.zip |
kunit: tool: move Kconfig read_from_file/parse_from_string to package-level
read_from_file() clears its `self` Kconfig object and parses a config
file.
It is a way to construct Kconfig objects more so than an operation on
Kconfig objects. This is reflected in the fact its only ever used as:
kconfig = kunit_config.Kconfig()
kconfig.read_from_file(path)
So clean this up and simplify callers by replacing it with
kconfig = kunit_config.parse_file(path)
Do the same thing for the related parse_from_string() function as well.
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions