Skip to content

Commit 3023d8f

Browse files
sulixshuahkh
authored andcommitted
kunit: Fix kunit.py --raw_output option
Due to the raw_output() function on kunit_parser.py actually being a generator, it only runs if something reads the lines it returns. Since we no-longer do that (parsing doesn't actually happen if raw_output is enabled), it was not printing anything. Fixes: 45ba7a8 ("kunit: kunit_tool: Separate out config/build/exec/parse") Signed-off-by: David Gow <davidgow@google.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Tested-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 3650b22 commit 3023d8f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

tools/testing/kunit/kunit_parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ def isolate_kunit_output(kernel_output):
6666
def raw_output(kernel_output):
6767
for line in kernel_output:
6868
print(line)
69-
yield line
7069

7170
DIVIDER = '=' * 60
7271

0 commit comments

Comments
 (0)