Hi Laurent,

On 17/06/2019 17:12, Laurent Pinchart wrote:
> When stopping a test, kernel messages can be logged after the event loop
> is stopped. Capture them before closing the log.

Ohh good catch.

Reviewed-by: Kieran Bingham <[email protected]>

> Signed-off-by: Laurent Pinchart <[email protected]>
> ---
>  tests/kmstest.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/kmstest.py b/tests/kmstest.py
> index adb67c82c368..217d39221c90 100755
> --- a/tests/kmstest.py
> +++ b/tests/kmstest.py
> @@ -119,6 +119,8 @@ class Logger(object):
>  
>      def close(self):
>          if self.logfile:
> +            # Capture the last kernel messages.
> +            self.event()
>              self.logfile.close()
>              self.logfile = None
>  
> 

-- 
Regards
--
Kieran

Reply via email to