diff options
author | Daniel Latypov <dlatypov@google.com> | 2022-05-16 12:47:30 -0700 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2022-07-07 17:46:25 -0600 |
commit | e756dbebd95d7ea7ae2a2343e8924eee10ec6253 (patch) | |
tree | 822359e259c4a2d526c266aeb4ef4657a44c5e55 /lib/buildid.c | |
parent | 8a04930f2bb0047de4ae18af12e5731084bd555c (diff) | |
download | linux-e756dbebd95d7ea7ae2a2343e8924eee10ec6253.tar.bz2 |
kunit: tool: refactoring printing logic into kunit_printer.py
Context:
* kunit_kernel.py is importing kunit_parser.py just to use the
print_with_timestamp() function
* the parser is directly printing to stdout, which will become an issue
if we ever try to run multiple kernels in parallel
This patch introduces a kunit_printer.py file and migrates callers of
kunit_parser.print_with_timestamp() to call
kunit_printer.stdout.print_with_timestamp() instead.
Future changes:
If we want to support showing results for parallel runs, we could then
create new Printer's that don't directly write to stdout and refactor
the code to pass around these Printer objects.
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 'lib/buildid.c')
0 files changed, 0 insertions, 0 deletions