From f8b7b7f6c4e594cee426e75dd61f31ec2f64fb54 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 17 Jun 2019 19:10:24 +0300 Subject: kmstest.py: Capture the last kernel messages before closing the log When stopping a test, kernel messages can be logged after the event loop is stopped. Capture them before closing the log. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- tests/kmstest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kmstest.py b/tests/kmstest.py index 706ba91..336e31a 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 -- cgit v1.2.3