test: add dmesg output to logs on error.
This can help isolate the problem. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
a76b3a345b
commit
bc6ccf969e
2
test
2
test
|
@ -304,6 +304,8 @@ do_test() {
|
||||||
else
|
else
|
||||||
log=log
|
log=log
|
||||||
cat $targetdir/stderr >> $targetdir/log
|
cat $targetdir/stderr >> $targetdir/log
|
||||||
|
echo "=======================dmesg=================" >> $targetdir/log
|
||||||
|
dmesg | tail -n 200 >> $targetdir/log
|
||||||
if [ $exitonerror == 0 ]; then
|
if [ $exitonerror == 0 ]; then
|
||||||
log=log-`basename $_script`
|
log=log-`basename $_script`
|
||||||
mv $targetdir/log $targetdir/$log
|
mv $targetdir/log $targetdir/$log
|
||||||
|
|
Loading…
Reference in New Issue