linux/tools/testing/kunit
Daniel Latypov 98978490cc 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>
2021-12-13 13:53:30 -07:00
..
configs kunit: Remove the unused all_tests.config 2021-06-23 17:49:41 -06:00
qemu_configs kunit: tool: add support for QEMU 2021-06-11 16:10:23 -06:00
test_data kunit: tool: Report an error if any test has no subtests 2021-12-13 13:36:15 -07:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
kunit.py kunit: tool: continue past invalid utf-8 output 2021-10-25 13:06:45 -06:00
kunit_config.py kunit: tool: move Kconfig read_from_file/parse_from_string to package-level 2021-12-13 13:53:30 -07:00
kunit_json.py kunit: tool: fix --json output for skipped tests 2021-12-13 13:33:30 -07:00
kunit_kernel.py kunit: tool: move Kconfig read_from_file/parse_from_string to package-level 2021-12-13 13:53:30 -07:00
kunit_parser.py kunit: tool: print parsed test results fully incrementally 2021-12-13 13:37:38 -07:00
kunit_tool_test.py kunit: tool: move Kconfig read_from_file/parse_from_string to package-level 2021-12-13 13:53:30 -07:00
qemu_config.py kunit: tool: add support for QEMU 2021-06-11 16:10:23 -06:00
run_checks.py kunit: add run_checks.py script to validate kunit changes 2021-12-13 13:35:22 -07:00