diff options
author | David Gow <davidgow@google.com> | 2020-10-21 20:04:55 -0700 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-10-26 13:19:22 -0600 |
commit | 3023d8ff3fc60e5d32dc1d05f99ad6ffa12b0033 (patch) | |
tree | 3365710c69daac59190e9d0412937ebb9a186f23 /tools | |
parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) | |
download | linux-stable-3023d8ff3fc60e5d32dc1d05f99ad6ffa12b0033.tar.gz linux-stable-3023d8ff3fc60e5d32dc1d05f99ad6ffa12b0033.tar.bz2 linux-stable-3023d8ff3fc60e5d32dc1d05f99ad6ffa12b0033.zip |
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: 45ba7a893ad8 ("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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/kunit/kunit_parser.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/kunit/kunit_parser.py b/tools/testing/kunit/kunit_parser.py index 8019e3dd4c32..744ee9cb0073 100644 --- a/tools/testing/kunit/kunit_parser.py +++ b/tools/testing/kunit/kunit_parser.py @@ -66,7 +66,6 @@ def isolate_kunit_output(kernel_output): def raw_output(kernel_output): for line in kernel_output: print(line) - yield line DIVIDER = '=' * 60 |