common: Add _require_no_xfs_bug_on_assert and factor out filter_xfs_dmesg
authorxiao yang <yangx.jy@cn.fujitsu.com>
Fri, 19 Jan 2018 05:38:05 +0000 (13:38 +0800)
committerEryu Guan <eguan@redhat.com>
Sun, 21 Jan 2018 14:10:50 +0000 (22:10 +0800)
commita3b3cf68fb905f0206d347e6d2e000a9f2c6e724
tree3a7b403d75c4fe8885e0105a1d41767994891d71
parent21e739820378bccbbb01305f8b59e64d9cd5a52f
common: Add _require_no_xfs_bug_on_assert and factor out filter_xfs_dmesg

1) Introduce _require_no_xfs_bug_on_assert helper to check if XFS is
   built with CONFIG_XFS_ASSERT_FATAL, and call _require_no_xfs_debug
   if bug_on_assert is not available.

2) Apply _require_no_xfs_bug_on_assert in xfs/098 and xfs/115.

3) Move filter_xfs_dmesg from xfs/098 to common/filter, and rename
   it as _filter_assert_dmesg.

[eguan: update comment and _notrun message a bit]

Signed-off-by: xiao yang <yangx.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/filter
common/xfs
tests/xfs/098
tests/xfs/115