Whamcloud - gitweb
LU-3142 tests: use echoerr() to redirect debug logs
authorJian Yu <jian.yu@intel.com>
Thu, 11 Apr 2013 10:37:47 +0000 (18:37 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 27 Apr 2013 19:36:00 +0000 (15:36 -0400)
This patch fixes run_dd.sh to use echoerr() for redirecting
debug logs to the log file instead of messing up the output.

Test-Parameters: clientdistro=el6 serverdistro=el6 \
clientarch=x86_64 serverarch=x86_64 clientcount=4 \
osscount=2 mdscount=2 austeroptions=-R failover=true \
useiscsi=true testlist=recovery-double-scale

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: I72c02a38c22fca4e7e806af6771e135efd506478
Reviewed-on: http://review.whamcloud.com/6027
Tested-by: Hudson
Reviewed-by: Li Wei <wei.g.li@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Tested-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/run_dd.sh

index 6106bb0..da11efa 100755 (executable)
@@ -36,7 +36,7 @@ while [ ! -e "$END_RUN_FILE" ] && $CONTINUE; do
        # combination in RHEL5 and OEL5, see BZ 21264
        FREE_SPACE=$($LFS df $TESTDIR|awk '/filesystem summary:/ {print $5}')
        BLKS=$((FREE_SPACE * 9 / 40))
-       echo "Free disk space is $FREE_SPACE, 4k blocks to dd is $BLKS"
+       echoerr "Free disk space is $FREE_SPACE, 4k blocks to dd is $BLKS"
 
        dd bs=4k count=$BLKS status=noxfer if=/dev/zero of=$TESTDIR/dd-file \
                                                                1>$LOG &