diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-06-17 19:10:24 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-06-18 21:07:47 +0300 |
commit | f8b7b7f6c4e594cee426e75dd61f31ec2f64fb54 (patch) | |
tree | dd26098dd68a375865aa16f87645c2c586be0bd3 | |
parent | 3cd7e6814ceacb53602e97893fb5e5bb7b2b1dcf (diff) |
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
-rwxr-xr-x | tests/kmstest.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |