Re: [PATCH] kunit: tool: fix --raw_output to actually show output

2020-10-30 Thread Daniel Latypov
On Fri, Oct 30, 2020 at 12:23 AM David Gow wrote: > > On Fri, Oct 30, 2020 at 2:17 PM Daniel Latypov wrote: > > > > Currently --raw_output means nothing gets shown. > > Why? > > Because `raw_output()` has a `yield` and therefore is a generator, which > > means it only executes when you ask it

Re: [PATCH] kunit: tool: fix --raw_output to actually show output

2020-10-30 Thread David Gow
On Fri, Oct 30, 2020 at 2:17 PM Daniel Latypov wrote: > > Currently --raw_output means nothing gets shown. > Why? > Because `raw_output()` has a `yield` and therefore is a generator, which > means it only executes when you ask it for a value. > > Given no one actually is using it as a generator

[PATCH] kunit: tool: fix --raw_output to actually show output

2020-10-30 Thread Daniel Latypov
Currently --raw_output means nothing gets shown. Why? Because `raw_output()` has a `yield` and therefore is a generator, which means it only executes when you ask it for a value. Given no one actually is using it as a generator (checked via the added type annotation), drop the yield so we