]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kunit: Fix kunit.py --raw_output option
authorDavid Gow <davidgow@google.com>
Thu, 22 Oct 2020 03:04:55 +0000 (20:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:00 +0000 (19:22 +0100)
commite6ddfc043e65505629f7cfea7d9eb957c565f76b
treefbea30c42c0f0f85babb1c889628c911dc2e7a22
parentcb5086c5dc7272e856aa7eda55fab22d549daad1
kunit: Fix kunit.py --raw_output option

[ Upstream commit 3023d8ff3fc60e5d32dc1d05f99ad6ffa12b0033 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/kunit/kunit_parser.py