diff options
author | Daniel Latypov <[email protected]> | 2022-05-16 12:47:30 -0700 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2022-07-07 17:46:25 -0600 |
commit | e756dbebd95d7ea7ae2a2343e8924eee10ec6253 (patch) | |
tree | 822359e259c4a2d526c266aeb4ef4657a44c5e55 /scripts/gdb/linux/utils.py | |
parent | 8a04930f2bb0047de4ae18af12e5731084bd555c (diff) |
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 <[email protected]>
Reviewed-by: David Gow <[email protected]>
Reviewed-by: Brendan Higgins <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions