]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
test: include any 'stderr' output in the log file.
authorNeilBrown <neilb@suse.de>
Tue, 2 Jul 2013 03:12:07 +0000 (13:12 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 2 Jul 2013 03:12:07 +0000 (13:12 +1000)
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>
test

diff --git a/test b/test
index 76d410f68d701b7902966ce68adff14bd41924a5..d9ba25cc78fcb8f3eb6ed010bc9ab3a38be12fe0 100755 (executable)
--- a/test
+++ b/test
@@ -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