From: Eryu Guan Date: Wed, 21 Jan 2015 05:19:33 +0000 (+1100) Subject: common: add _disable_dmesg_check function X-Git-Tag: v2022.05.01~2967 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=eceb6795a2c29bc6fbaca321ffc1832a80b6cc5a;p=xfstests-dev.git common: add _disable_dmesg_check function 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 Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/common/rc b/common/rc index 5770b0a3..5377ba08 100644 --- 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 ]