From 2ed2a85fdccfd4e82be5f586e79fa943f938f65b Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Thu, 28 Nov 2013 14:47:55 +0800 Subject: [PATCH 1/1] 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 --- lustre/tests/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ]] && -- 1.8.3.1