linux-xiaomi-chiron/tools/testing/kunit
Daniel Latypov ee96d25f2f kunit: tool: refactor how we plumb metadata into JSON
When using --json, kunit.py run/exec/parse will produce results in
KernelCI json format.
As part of that, we include the build_dir that was used, and we
(incorrectly) hardcode in the arch, etc.

We'll want a way to plumb more values (as well as the correct `arch`),
so this patch groups those fields into kunit_json.Metadata type.
This patch should have no user visible changes.

And since we only used build_dir in KunitParseRequest for json, we can
now move it out of that struct and add it into KunitExecRequest, which
needs it and used to get it via inheritance.

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>
2022-04-04 15:22:23 -06: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: refactor how we plumb metadata into JSON 2022-04-04 15:22:23 -06:00
kunit_config.py kunit: tool: drop last uses of collections.namedtuple 2022-04-04 14:25:53 -06:00
kunit_json.py kunit: tool: refactor how we plumb metadata into JSON 2022-04-04 15:22:23 -06:00
kunit_kernel.py kunit: tool: simplify code since build_dir can't be None 2022-04-04 14:25:58 -06:00
kunit_parser.py kunit: tool: fix newly introduced typechecker errors 2021-12-15 16:44:49 -07:00
kunit_tool_test.py kunit: tool: refactor how we plumb metadata into JSON 2022-04-04 15:22:23 -06:00
qemu_config.py kunit: tool: drop last uses of collections.namedtuple 2022-04-04 14:25:53 -06:00
run_checks.py kunit: fix missing f in f-string in run_checks.py 2022-02-02 11:12:15 -07:00