kunit: Fix kunit.py --raw_output option
authorDavid Gow <davidgow@google.com>
Thu, 22 Oct 2020 03:04:55 +0000 (20:04 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 26 Oct 2020 19:19:22 +0000 (13:19 -0600)
commit3023d8ff3fc60e5d32dc1d05f99ad6ffa12b0033
tree3365710c69daac59190e9d0412937ebb9a186f23
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
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>
tools/testing/kunit/kunit_parser.py