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:
parent
be7c26b48c
commit
855a353904
1
test
1
test
|
@ -240,6 +240,7 @@ do_test() {
|
||||||
_fail=0
|
_fail=0
|
||||||
else
|
else
|
||||||
log=log
|
log=log
|
||||||
|
cat $targetdir/stderr >> $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