From: David Gow Date: Thu, 22 Oct 2020 03:04:55 +0000 (-0700) Subject: kunit: Fix kunit.py --raw_output option X-Git-Tag: v5.9.9~241 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e6ddfc043e65505629f7cfea7d9eb957c565f76b;p=users%2Fdwmw2%2Flinux.git 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 Reviewed-by: Brendan Higgins Tested-by: Brendan Higgins Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- diff --git a/tools/testing/kunit/kunit_parser.py b/tools/testing/kunit/kunit_parser.py index f13e0c0d66639..62a0848699671 100644 --- a/tools/testing/kunit/kunit_parser.py +++ b/tools/testing/kunit/kunit_parser.py @@ -65,7 +65,6 @@ def isolate_kunit_output(kernel_output): def raw_output(kernel_output): for line in kernel_output: print(line) - yield line DIVIDER = '=' * 60