framework/dmesg: Adds a new module for dmesg

This class implements a class for reading dmesg, including a dummy class
for running on non-posix systems. It works as a class, and is cleaner
than the current implementation.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
dmesg: Use the dmesg class instead of the dmesg functions

This requires some minor changes, since the dmesg class returns either
None or [] (which are both falsy instances) instead of '' when not
giving a dmesg warning.

The biggest change in this patch is that the --dmesg option is removed.
This is possible since the dmesg module implements a dummy class for
non-posix systems.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
dmesg: setup dmesg to be able to mark a test warn or fail

This gives the dmesg class lists of statuses that will make a test a
warn or a fail, it includes a few basic checks, namely i915 errors and
that tests have not segfaulted.

v2: - Add setters for PosixDmesg._fails and PosixDmesg._warns.
      This allows them to be extended by external tests suites which may
      want to look for more/different messages

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
gleantest.py: Use new dmesg class

This allows glean to use the dmesg class to check dmesg.

v2: - report dmesg-fail and dmesg-warn instead of fail and warn

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
es3conform.tests: Check dmesg

This allows es3conform to use the dmesg class.
NOTE: can someone confirm that this works?

v2: - report dmesg-fail and dmesg-warn instead of fail and warn
igt.tests: make use of dmesg

This patch allows the igt integrated tests to use the new dmesg
implementation.

v2: - report dmesg-fail and dmesg-warn instead of fail and warn

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
oglconform.tests: Convert to new dmesg format

v2: - include support for oglconform