Skip to content

RFC fstests: check dmesg after test

Eryu Guan fstests 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3check: log running test to dmesgcheck+4 -00 replies
2/3check: check dmesg log after each testcheck+29 -00 replies
3/3common: add _disable_dmesg_check functioncommon/rc+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] fstests: check dmesg after test

This patchset adds dmesg check after each test.

The first patch is a backlog patch from Eric Sandeen, which adds log message of running to dmesg.

And the second patch takes use of this log to search for dmesg log of last test, without clearing dmesg buffer nor dumping all dmesg to a file, which can potentially eat all free space on testing host.

The third patch adds a function to disable this dmesg check, which can be called by tests that generate WARNINGs/etc. on purpose, so the tests won't fail _dmesg_check. But so far I haven't found any tests that need this function. (Some xfs tests like xfs/111 inject corruptions on purpose and log errors to dmesg, but _dmesg_check is unable to detect these xfs-specific failures now.)

Right now with 3.19.0-rc4+ kernel, xfs/279 and btrfs/017 fail this check, and btrfs/017 is a known issue, xfs/279 exposes an scsi bug

http://permalink.gmane.org/gmane.linux.scsi/98063

Thanks,
Eryu

Eric Sandeen (1):
check: log running test to dmesg

Eryu Guan (2):
check: check dmesg log after each test
common: add _disable_dmesg_check function

 check     | 33 +++++++++++++++++++++++++++++++++
 common/rc |  6 ++++++
 2 files changed, 39 insertions(+)
Signature · 1 line
2.1.0