From: Jian Yu Date: Thu, 28 Nov 2013 06:47:55 +0000 (+0800) Subject: LU-3906 tests: use df instead of lfs_df in run_compilebench() X-Git-Tag: 2.5.53~56 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F29%2F8429%2F2;p=fs%2Flustre-release.git LU-3906 tests: use df instead of lfs_df in run_compilebench() Since run_compilebench() will be run on NFS client which has no Lustre filesystem, we need change to use df instead of lfs_df to get the space usage information. Test-Parameters: envdefinitions=SLOW=yes,ONLY=compilebench \ testlist=parallel-scale,parallel-scale-nfsv3,parallel-scale-nfsv4 Signed-off-by: Jian Yu Change-Id: Ia1a9586586b888231952830180157a9e37f08843 Reviewed-on: http://review.whamcloud.com/8429 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Nathaniel Clark Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/functions.sh b/lustre/tests/functions.sh index 23ff2a4..0bc4fa0 100644 --- a/lustre/tests/functions.sh +++ b/lustre/tests/functions.sh @@ -296,7 +296,7 @@ run_compilebench() { [ -e $cbench_DIR/compilebench ] || \ { skip_env "No compilebench build" && return; } - local space=$(lfs_df $DIR | awk '/^filesystem/{ print $4 }') + local space=$(df -P $DIR | tail -n 1 | awk '{ print $4 }') if [[ $space -le $((1024 * 1024 * cbench_IDIRS)) ]]; then cbench_IDIRS=$((space / 1024 / 1024)) [[ $cbench_IDIRS -eq 0 ]] &&