Tests Checks

In some cases we want to run additional checks while running a test. A nice example is a check for unexpected SELinux AVCs produced during the test, this can point to additional issues the user can run into. Another useful checks would be kernel panic detection, core dump collection or collection of system logs.

See the check key for specification and more examples. Below, you will find test check plugins shipped with tmt.

avc

Check for SELinux AVC denials raised during the test.

The check collects SELinux AVC denials from the audit log, gathers details about them, and together with versions of the selinux-policy and related packages stores them in a file after the test.

check:
  - name: avc

New in version 1.28.

Configuration

enabled: true | false

Whether the check is enabled or not.

dmesg

Save the content of kernel ring buffer (aka “console”) into a file.

The check saves one file before the test, and then again when test finishes.

check:
  - name: dmesg

New in version 1.28.

Configuration

enabled: true | false

Whether the check is enabled or not.