X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Ffunctions.sh;h=0bc4fa0e279482a5e86176c2830dfbe2c40a2a1d;hp=23ff2a435a67215bde59166c0a1e2051421df340;hb=2ed2a85fdccfd4e82be5f586e79fa943f938f65b;hpb=f157ebea33edb656b123bb34d4cb06f970bb4bb6 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 ]] &&