[PATCH 0/1][autotest-client-tests] ubuntu_boot: add tests to check error in log and kernel_tainted flags

Po-Hsu Lin po-hsu.lin at canonical.com
Wed Jul 8 12:11:29 UTC 2020


Add two sub-tests into the boot test to help us catching issues like
lp:1840046 ("BUG: non-zero pgtables_bytes on freeing mm: -16384") in the
early stage:
  1. log_check test - use regex to search for error patterns in syslog
  2. kernel_tainted test - check for kernel tainted flags

Call the original test as a boot_smoke_test, so now there will be 3
tests under this ubuntu_boot test.

This ubuntu_boot test will be executed when the kernel was copied to
our ppa.

I don't want to put this into our infrastructure code (CKCT or
kernel-testing) as it will be confusing with other failures that we can
see during the testing node deployment stage. And it's only kernel QA
that will check for this kind of failures on the jenkins server.

Put this into the ubuntu_boot test instead so that the result can be
reviewed by any kernel team member when the kernel goes to -ppa.

You can test the log parser with this example syslog:
https://paste.ubuntu.com/p/xkfxG2hvnB/

Po-Hsu Lin (1):
  UBUNTU: SAUCE: ubuntu_boot: add tests to check error in log and
    kernel_tainted flags

 ubuntu_boot/control.ubuntu |  8 +++---
 ubuntu_boot/ubuntu_boot.py | 53 ++++++++++++++++++++++++++++++++++++--
 2 files changed, 56 insertions(+), 5 deletions(-)

-- 
2.17.1




More information about the kernel-team mailing list