test: include any 'stderr' output in the log file.

Errors from mdadm go to 'stderr', so if there is an array,
copy those to the log file.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2013-07-02 13:12:07 +10:00
parent be7c26b48c
commit 855a353904
1 changed files with 1 additions and 0 deletions

1
test
View File

@ -240,6 +240,7 @@ do_test() {
_fail=0
else
log=log
cat $targetdir/stderr >> $targetdir/log
if [ $exitonerror == 0 ]; then
log=log-`basename $_script`
mv $targetdir/log $targetdir/$log