From: NeilBrown Date: Mon, 6 Jul 2015 03:59:33 +0000 (+1000) Subject: test: add dmesg output to logs on error. X-Git-Tag: mdadm-3.3.3~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc6ccf969ec5f0d5399412ebda49335e5752f850;p=thirdparty%2Fmdadm.git test: add dmesg output to logs on error. This can help isolate the problem. Signed-off-by: NeilBrown --- diff --git a/test b/test index 6f79c3ad..d268433e 100755 --- a/test +++ b/test @@ -304,6 +304,8 @@ do_test() { else log=log cat $targetdir/stderr >> $targetdir/log + echo "=======================dmesg=================" >> $targetdir/log + dmesg | tail -n 200 >> $targetdir/log if [ $exitonerror == 0 ]; then log=log-`basename $_script` mv $targetdir/log $targetdir/$log