]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common: add _disable_dmesg_check function
authorEryu Guan <eguan@redhat.com>
Wed, 21 Jan 2015 05:19:33 +0000 (16:19 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 21 Jan 2015 05:19:33 +0000 (16:19 +1100)
Introduce _disable_dmesg_check function, which can be called by tests
that generate WARNINGs etc. on purpose, so the tests won't fail
_dmesg_check.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc

index 5770b0a3b9bdf3ec764a3fc0c0aa6f78314d914f..5377ba08d2162995befcec91e8b74eda9c4fa585 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2805,6 +2805,12 @@ _get_device_size()
        grep `_short_dev $1` /proc/partitions | awk '{print $3}'
 }
 
+# don't check dmesg log after test
+_disable_dmesg_check()
+{
+       rm -f ${RESULT_DIR}/check_dmesg
+}
+
 init_rc()
 {
        if [ "$iam" == new ]