From: Jian Yu Date: Thu, 11 Apr 2013 10:37:47 +0000 (+0800) Subject: LU-3142 tests: use echoerr() to redirect debug logs X-Git-Tag: 2.3.65~59 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=2bbcfeff1dc5e911fe6a8ce042469f21adc1b071 LU-3142 tests: use echoerr() to redirect debug logs 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 Change-Id: I72c02a38c22fca4e7e806af6771e135efd506478 Reviewed-on: http://review.whamcloud.com/6027 Tested-by: Hudson Reviewed-by: Li Wei Tested-by: Maloo Tested-by: Hongchao Zhang Reviewed-by: Hongchao Zhang Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/run_dd.sh b/lustre/tests/run_dd.sh index 6106bb0..da11efa 100755 --- a/lustre/tests/run_dd.sh +++ b/lustre/tests/run_dd.sh @@ -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 &