summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-07-06 13:59:33 +1000
committerNeilBrown <neilb@suse.de>2015-07-06 15:32:46 +1000
commitbc6ccf969ec5f0d5399412ebda49335e5752f850 (patch)
tree7927c2ddd443dc985ad0b24c373dd7f7a4df1f4d /test
parenta76b3a345b23193007b0e5ffd9881281d041d094 (diff)
downloadmdadm-bc6ccf969ec5f0d5399412ebda49335e5752f850.tar.gz
test: add dmesg output to logs on error.
This can help isolate the problem. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'test')
-rwxr-xr-xtest2
1 files changed, 2 insertions, 0 deletions
diff --git a/test b/test
index 6f79c3a..d268433 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